Skip to content

Commit

Permalink
Merge pull request #761 from nyetwurk/PR-2-nyet
Browse files Browse the repository at this point in the history
Add option to build gdbserver for target that does not require libstdc++.so
  • Loading branch information
stilor committed Jun 17, 2017
2 parents f36f61f + 50df064 commit fae66ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/debug/gdb.in.gdbserver
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions scripts/build/debug/300-gdb.sh
Expand Up @@ -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
Expand Down

0 comments on commit fae66ae

Please sign in to comment.