aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2023-03-05 17:03:10 +1300
committerChris Packham <judge.packham@gmail.com>2024-07-29 13:12:59 +1200
commitb6a4766d2237f9fcb9a043ef5a2d74a25c69d07b (patch)
tree71333099bdabe6f4b4446a81ce443bec4d026629 /config
parent5d2b316093a3bd348d7902382179d68270a38c3b (diff)
downloadcrosstool-ng-b6a4766d2237f9fcb9a043ef5a2d74a25c69d07b.tar.gz
crosstool-ng-b6a4766d2237f9fcb9a043ef5a2d74a25c69d07b.tar.bz2
crosstool-ng-b6a4766d2237f9fcb9a043ef5a2d74a25c69d07b.zip
binutils: Allow gold to be statically linked
gold uses g++ to link which doesn't recognise -all-static. It appears as if -static should work for both libtool and g++ but for some reason it doesn't. Remove the restriction that gold can't be included in a static toolchain. When a static toolchain is requested pass --with-gold-ldflags=--static to configure. Finally build gold separately so it does not get the extra_make_flags which may contain -all-static. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/binutils/binutils.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index 0744080a..4a91a8f7 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -17,7 +17,6 @@ config BINUTILS_GOLD_SUPPORT
bool
default y
depends on BINUTILS_GOLD_SUPPORTS_ARCH
- depends on ! STATIC_TOOLCHAIN
# Force using the BFD linker if needed. There are two options:
# - For some C libraries (eg. glibc at least), BFD ld must be