mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
daf19e1761
As of version 13.x GDB uses libtool for linking instead of g++ these
take different arguments for static linking. Commit 6146b5a6
("use
-all-static when building a static gdb") attempted to deal with this but
had the effect of causing older GDB versions to fail to build
statically. Add a new internal flag GDB_CC_LD_LIBTOOL and use this to
decide whether to pass `-static` or `-all-static`.
Fixes #2053
Signed-off-by: Chris Packham <judge.packham@gmail.com>
26 lines
658 B
Plaintext
26 lines
658 B
Plaintext
# GDB menu
|
|
|
|
## help gdb is the GNU debugger
|
|
|
|
source "config/debug/gdb.in.cross"
|
|
source "config/debug/gdb.in.native"
|
|
|
|
|
|
# GDB10 and newer require std::future<> which was not implemented on some
|
|
# architectures until GCC9; see GCC PR 64735.
|
|
config GDB_DEP_NO_STD_FUTURE
|
|
def_bool y
|
|
depends on !GCC_9_or_later
|
|
select GDB_REQUIRE_older_than_10
|
|
|
|
# As of GDB 10.x gdbserver is now at the toplevel of the distributed
|
|
# tarball (instead of a subdirectory of gdb)
|
|
config GDB_GDBSERVER_TOPLEVEL
|
|
def_bool y
|
|
depends on GDB_10_or_later
|
|
|
|
# As of GDB 13.x libtool is used for linking
|
|
config GDB_CC_LD_LIBTOOL
|
|
def_bool y
|
|
depends on GDB_13_or_later
|