debug/gdb: fix canadian-cross in case of static cross gdb

Building the cross-gdb shoud be done using the host compiler,
not the native compiler.

Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
Yann E. MORIN" 2013-11-15 21:35:27 +01:00
parent edd01b7729
commit 78c5cab850

View File

@ -146,8 +146,8 @@ do_debug_gdb_build() {
CC_for_gdb=
LD_for_gdb=
if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
CC_for_gdb="gcc -static"
LD_for_gdb="ld -static"
CC_for_gdb="${CT_HOST}-gcc -static"
LD_for_gdb="${CT_HOST}-ld -static"
fi
CT_DoLog DEBUG "Extra config passed: '${cross_extra_config[*]}'"