public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* gold vs. CT_STATIC_TOOLCHAIN
@ 2011-12-02 13:25 Johannes Stezenbach
  2011-12-13 17:23 ` Johannes Stezenbach
  2011-12-14  0:09 ` Yann E. MORIN
  0 siblings, 2 replies; 8+ messages in thread
From: Johannes Stezenbach @ 2011-12-02 13:25 UTC (permalink / raw)
  To: crossgcc

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-18 12:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-02 13:25 gold vs. CT_STATIC_TOOLCHAIN Johannes Stezenbach
2011-12-13 17:23 ` Johannes Stezenbach
2011-12-13 22:32   ` Yann E. MORIN
2011-12-14  0:09 ` Yann E. MORIN
2011-12-14 11:15   ` Johannes Stezenbach
2011-12-14 11:43     ` Johannes Stezenbach
2012-01-16 23:22       ` Yann E. MORIN
2012-01-18 12:01         ` Johannes Stezenbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).