mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
Offer an option to build the gdbserver statically. This helps in case of debugging shared library loading.
This commit is contained in:
parent
7746415b7d
commit
b9f843657a
@ -16,6 +16,15 @@ config GDB_CROSS
|
||||
help
|
||||
Build and install a cross-gdb for the target, and to run on host.
|
||||
|
||||
config GDB_CROSS_STATIC_GDBSERVER
|
||||
bool
|
||||
prompt "Build a static gdbserver"
|
||||
default n
|
||||
depends on GDB_CROSS
|
||||
help
|
||||
In case you have trouble with dynamic loading of shared libraries,
|
||||
you will find that a static gdbserver comes in handy.
|
||||
|
||||
config GDB_NATIVE
|
||||
bool
|
||||
prompt "Native gdb (EXPERIMENTAL)"
|
||||
|
@ -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} \
|
||||
|
Loading…
Reference in New Issue
Block a user