# HG changeset patch # User "Yann E. MORIN" # Date 1384547727 -3600 # Node ID b76147cfdfee89332db1900128642b60772b85ee # Parent 74cb9dc864ecf289660b6ccf58dd989f740347c8 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" diff -r 74cb9dc864ec -r b76147cfdfee scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Fri Nov 15 21:21:12 2013 +0100 +++ b/scripts/build/debug/300-gdb.sh Fri Nov 15 21:35:27 2013 +0100 @@ -146,8 +146,8 @@ 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[*]}'"