--- scripts/build/debug/300-gdb.sh.orig 2024-11-21 21:58:11.128412307 +0100 +++ scripts/build/debug/300-gdb.sh 2024-11-21 21:59:22.628825662 +0100 @@ -348,7 +348,7 @@ if [ "${static}" = "y" ]; then if [ "${CT_GDB_CC_LD_LIBTOOL}" = "y" ]; then - extra_make_flags+=("LDFLAGS=${ldflags} -all-static") + extra_make_flags+=("LDFLAGS=${ldflags} -static --static") else extra_make_flags+=("LDFLAGS=${ldflags} -static") fi