From 78c5cab8505e43f546c5ee5c273dce736d8075d7 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 15 Nov 2013 21:35:27 +0100 Subject: 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 Signed-off-by: "Yann E. MORIN" --- scripts/build/debug/300-gdb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/build/debug') diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 1dc7a71e..029a58fe 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[*]}'" -- cgit v1.2.3