summaryrefslogtreecommitdiff
path: root/scripts/build/debug
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:35:27 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:35:27 (GMT)
commit78c5cab8505e43f546c5ee5c273dce736d8075d7 (patch)
treefe5648427c452f57e11e8d06fcc6d997ef2963ed /scripts/build/debug
parentedd01b7729d84c8c7d00e118b4eee55d46da8030 (diff)
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>
Diffstat (limited to 'scripts/build/debug')
-rw-r--r--scripts/build/debug/300-gdb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 1dc7a71..029a58f 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -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[*]}'"