mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
Offer an option to build a static cross-gdb.
/trunk/scripts/build/debug/gdb.sh | 9 9 0 0 +++++++++ /trunk/config/debug/gdb.in | 9 9 0 0 +++++++++ 2 files changed, 18 insertions(+)
This commit is contained in:
parent
4e3f85be75
commit
8a6d956634
@ -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_GDB
|
||||
bool
|
||||
prompt "Build a static cross gdb"
|
||||
default n
|
||||
depends on GDB_CROSS
|
||||
help
|
||||
A static cross gdb can be usefull if you debug on a machine that is
|
||||
not the one that is used to compile.
|
||||
|
||||
config GDB_CROSS_STATIC_GDBSERVER
|
||||
bool
|
||||
prompt "Build a static gdbserver"
|
||||
|
@ -42,6 +42,15 @@ do_debug_gdb_build() {
|
||||
mkdir -p "${CT_BUILD_DIR}/build-gdb-cross"
|
||||
cd "${CT_BUILD_DIR}/build-gdb-cross"
|
||||
|
||||
CC_for_gdb=
|
||||
LD_for_gdb=
|
||||
if [ "${CT_GDB_CROSS_STATIC_GDBSERVER}" = "y" ]; then
|
||||
CC_for_gdb="gcc -static"
|
||||
LD_for_gdb="ld -static"
|
||||
fi
|
||||
|
||||
CC="${CC_for_gdb}" \
|
||||
LD="${LD_forgdb}" \
|
||||
"${gdb_src_dir}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_HOST} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user