Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions config/debug/gdb.in.gdbserver
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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