Skip to content

Commit 8fb5065

Browse files
Build GDB in native toolchain as a C application
As already described in previous commits, for this release GDB has to be built as a C application. However there are two ways how these build scripts build native toolchain: 1) As an additional step when building cross-toolchain 2) As a normal GDB when building native toolchain Previous commit fixed case 1), but not the case 2). This is corrected in this commit. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 77f6316 commit 8fb5065

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

build-uclibc.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,18 @@ then
584584
build_expat $toolchain_build_dir/_download_tmp uclibc_stage2
585585
fi
586586

587+
# See comment for "native GDB" being built later. If whole toolchain is native,
588+
# then this step is itself building a native GDB, hence same machinations with
589+
# disable-build-with-cxx are required.
590+
if [ $IS_NATIVE = yes ]; then
591+
cxx_build=--disable-build-with-cxx
592+
else
593+
cxx_build=
594+
fi
595+
587596
build_dir_init gdb
588-
configure_uclibc_stage2 gdb gdb --disable-ld --disable-gas --disable-binutils
597+
configure_uclibc_stage2 gdb gdb --disable-ld --disable-gas --disable-binutils \
598+
$cxx_build
589599
make_target building all
590600
make_target installing ${HOST_INSTALL}-gdb $stripprog_opt
591601
if [ "$DO_PDF" = "--pdf" ]

0 commit comments

Comments
 (0)