debug/gdb: fix canadian-cross in case of static cross gdb
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Nov 15 21:35:27 2013 +0100 (2013-11-15)
changeset 3249b76147cfdfee
parent 3248 74cb9dc864ec
child 3250 48f5cb844d26
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>
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Fri Nov 15 21:21:12 2013 +0100
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Fri Nov 15 21:35:27 2013 +0100
     1.3 @@ -146,8 +146,8 @@
     1.4          CC_for_gdb=
     1.5          LD_for_gdb=
     1.6          if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
     1.7 -            CC_for_gdb="gcc -static"
     1.8 -            LD_for_gdb="ld -static"
     1.9 +            CC_for_gdb="${CT_HOST}-gcc -static"
    1.10 +            LD_for_gdb="${CT_HOST}-ld -static"
    1.11          fi
    1.12  
    1.13          CT_DoLog DEBUG "Extra config passed: '${cross_extra_config[*]}'"