mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 12:36:23 +00:00
gdb/gdbserver: use -static --static for static build
With gdb15.2 gdb uses libtool for linking, but gdbserver is not. Should not break #2230 or #2053 Signed-off-by: Michał Zagórski <zagura6+github@gmail.com>
This commit is contained in:
parent
9c444f4ca6
commit
71cfd2d094
@ -354,7 +354,9 @@ do_gdb_backend()
|
||||
|
||||
if [ "${static}" = "y" ]; then
|
||||
if [ "${CT_GDB_CC_LD_LIBTOOL}" = "y" ]; then
|
||||
extra_make_flags+=("LDFLAGS=${ldflags} -all-static")
|
||||
# gdb is linked with libtool, but gdbserver is not
|
||||
# Both linker accept -static --static and create static binaries
|
||||
extra_make_flags+=("LDFLAGS=${ldflags} -static --static")
|
||||
else
|
||||
extra_make_flags+=("LDFLAGS=${ldflags} -static")
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user