This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gold vs. CT_STATIC_TOOLCHAIN


Hi,

with CT_STATIC_TOOLCHAIN ./scripts/build/binutils/binutils.sh
adds -all-static to LDFLAGS.  However, -all-static is a libtool
option and gold is not libtoolized.  Maybe cg-ng should just
disable gold when CT_STATIC_TOOLCHAIN is selected?

Untested:  (the 2nd and 3rd hunk are actually a seperate bugfix)


diff -r cf509170838f config/binutils/binutils.in
--- a/config/binutils/binutils.in	Wed Nov 30 12:07:59 2011 +0100
+++ b/config/binutils/binutils.in	Fri Dec 02 14:21:20 2011 +0100
@@ -101,6 +101,9 @@
 config BINUTILS_FORCE_LD_BFD
     bool
 
+config STATIC_TOOLCHAIN
+    select BINUTILS_FORCE_LD_BFD
+
 choice
     bool
     prompt "Linkers to enable"
@@ -130,6 +133,7 @@
     prompt "ld, gold"
     depends on BINUTILS_HAS_GOLD
     depends on BINUTILS_GOLD_SUPPORTS_ARCH
+    depends on ! BINUTILS_FORCE_LD_BFD
     depends on EXPERIMENTAL
     select BINUTILS_GOLD_INSTALLED
     select BINUTILS_LINKER_BOTH
@@ -144,6 +148,7 @@
     prompt "gold, ld"
     depends on BINUTILS_HAS_GOLD
     depends on BINUTILS_GOLD_SUPPORTS_ARCH
+    depends on ! BINUTILS_FORCE_LD_BFD
     depends on EXPERIMENTAL
     select BINUTILS_GOLD_INSTALLED
     select BINUTILS_LINKER_BOTH


Johannes

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]