diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-17 15:46:13 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-17 15:46:13 (GMT) |
commit | b9f843657aca844a6f08d807fcb493b4abc0f723 (patch) | |
tree | 4122b2b2694d7d3b6d7d2144f8ad2c09f2d0c5fa /scripts/build/debug | |
parent | 7746415b7dc0ce7a822a8cb2920d14220b7fe5c1 (diff) |
Offer an option to build the gdbserver statically. This helps in case of debugging shared library loading.
Diffstat (limited to 'scripts/build/debug')
-rw-r--r-- | scripts/build/debug/gdb.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/debug/gdb.sh b/scripts/build/debug/gdb.sh index 55c7c54..47389ac 100644 --- a/scripts/build/debug/gdb.sh +++ b/scripts/build/debug/gdb.sh @@ -70,6 +70,12 @@ do_debug_gdb_build() { # Bah, GNU folks strike again... :-( chmod +x "${gdb_src_dir}/gdb/gdbserver/configure" + gdbserver_LDFLAGS= + if [ "${CT_GDB_CROSS_STATIC_GDBSERVER}" = "y" ]; then + gdbserver_LDFLAGS=-static + fi + + LDFLAGS="${gdbserver_LDFLAGS}" \ "${gdb_src_dir}/gdb/gdbserver/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ |