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:
Yann E. MORIN" 2008-04-27 10:25:02 +00:00
parent 4e3f85be75
commit 8a6d956634
2 changed files with 18 additions and 0 deletions

View File

@ -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"

View File

@ -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} \