mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-13 22:23:04 +00:00
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:
parent
edd01b7729
commit
78c5cab850
@ -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[*]}'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user