mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
Add option to build gdbserver for target that does not require libstdc++.so
This commit is contained in:
parent
f36f61faf4
commit
50df064004
@ -40,6 +40,15 @@ config GDB_GDBSERVER_STATIC
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=19617
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=21086
|
||||
|
||||
config GDB_GDBSERVER_STATIC_LIBSTDCXX
|
||||
bool
|
||||
prompt "Link against static libstdc+++"
|
||||
depends on !GDB_GDBSERVER_STATIC
|
||||
default n
|
||||
help
|
||||
Say 'y' if you do not want gdbserver to require libstdc++.so on the
|
||||
target.
|
||||
|
||||
config GDB_GDBSERVER_BUILD_IPA_LIB
|
||||
bool
|
||||
prompt "Build the IPA library"
|
||||
|
@ -319,6 +319,10 @@ do_debug_gdb_build() {
|
||||
gdbserver_LDFLAGS=-static
|
||||
fi
|
||||
|
||||
if [ "${CT_GDB_GDBSERVER_STATIC_LIBSTDCXX}" = "y" ]; then
|
||||
gdbserver_LDFLAGS+=" -static-libstdc++"
|
||||
fi
|
||||
|
||||
gdbserver_extra_config=("${extra_config[@]}")
|
||||
|
||||
# We may not have C++ language configured for target
|
||||
|
Loading…
Reference in New Issue
Block a user