mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 22:52:23 +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=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"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user