diff options
author | Alexey Neyman <stilor@att.net> | 2017-06-17 13:53:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-17 13:53:00 -0700 |
commit | fae66ae34fb6fcade87abb3aa48bcdbf5fead662 (patch) | |
tree | 2c1c4e109993b21a668bbaa1b96569717b68e167 | |
parent | f36f61faf46013036f62e0ccc852645591081850 (diff) | |
parent | 50df064004cbfa92a18709be0ed5061dec7f247f (diff) | |
download | crosstool-ng-fae66ae34fb6fcade87abb3aa48bcdbf5fead662.tar.gz crosstool-ng-fae66ae34fb6fcade87abb3aa48bcdbf5fead662.tar.bz2 crosstool-ng-fae66ae34fb6fcade87abb3aa48bcdbf5fead662.zip |
Merge pull request #761 from nyetwurk/PR-2-nyet
Add option to build gdbserver for target that does not require libstdc++.so
-rw-r--r-- | config/debug/gdb.in.gdbserver | 9 | ||||
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/config/debug/gdb.in.gdbserver b/config/debug/gdb.in.gdbserver index 73a04c70..db0884e7 100644 --- a/config/debug/gdb.in.gdbserver +++ b/config/debug/gdb.in.gdbserver @@ -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" diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 52290f1b..e5276d0f 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -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 |