gdb: fix GDB_CC_LD_LIBTOOL reference

GDB_CC_LD_LIBTOOL doesn't exist and so else branch always taken.
We should use CT_GDB_CC_LD_LIBTOOL.

Signed-off-by: demin.han <demin.han@starfivetech.com>
This commit is contained in:
demin.han 2024-10-14 15:31:02 +08:00 committed by Chris Packham
parent 8c1cdb94c1
commit 6d1d61cbca

View File

@ -347,7 +347,7 @@ do_gdb_backend()
"${extra_config[@]}" \
if [ "${static}" = "y" ]; then
if [ "${GDB_CC_LD_LIBTOOL}" = "y" ]; then
if [ "${CT_GDB_CC_LD_LIBTOOL}" = "y" ]; then
extra_make_flags+=("LDFLAGS=${ldflags} -all-static")
else
extra_make_flags+=("LDFLAGS=${ldflags} -static")