Add option to build gdbserver for target that does not require libstdc++.so

This commit is contained in:
Nye Liu 2017-06-16 22:27:04 -07:00
parent f36f61faf4
commit 50df064004
2 changed files with 13 additions and 0 deletions

View File

@ -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=19617
https://sourceware.org/bugzilla/show_bug.cgi?id=21086 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 config GDB_GDBSERVER_BUILD_IPA_LIB
bool bool
prompt "Build the IPA library" prompt "Build the IPA library"

View File

@ -319,6 +319,10 @@ do_debug_gdb_build() {
gdbserver_LDFLAGS=-static gdbserver_LDFLAGS=-static
fi fi
if [ "${CT_GDB_GDBSERVER_STATIC_LIBSTDCXX}" = "y" ]; then
gdbserver_LDFLAGS+=" -static-libstdc++"
fi
gdbserver_extra_config=("${extra_config[@]}") gdbserver_extra_config=("${extra_config[@]}")
# We may not have C++ language configured for target # We may not have C++ language configured for target