summaryrefslogtreecommitdiff
path: root/scripts/build/debug/300-gdb.sh
diff options
context:
space:
mode:
authorNye Liu <nyet@mrv.com>2017-06-17 05:27:04 (GMT)
committerNye Liu <nyet@mrv.com>2017-06-17 05:28:07 (GMT)
commit50df064004cbfa92a18709be0ed5061dec7f247f (patch)
tree2c1c4e109993b21a668bbaa1b96569717b68e167 /scripts/build/debug/300-gdb.sh
parentf36f61faf46013036f62e0ccc852645591081850 (diff)
Add option to build gdbserver for target that does not require libstdc++.so
Diffstat (limited to 'scripts/build/debug/300-gdb.sh')
-rw-r--r--scripts/build/debug/300-gdb.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 52290f1..e5276d0 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