From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25038 invoked by alias); 13 Dec 2011 17:23:56 -0000 Received: (qmail 25024 invoked by uid 22791); 13 Dec 2011 17:23:54 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 17:23:40 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.69) (envelope-from ) id 1RaW4n-0003Jq-0L; Tue, 13 Dec 2011 18:23:38 +0100 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1RaW4l-0002yU-DO; Tue, 13 Dec 2011 18:23:35 +0100 Date: Tue, 13 Dec 2011 17:23:00 -0000 From: Johannes Stezenbach To: crossgcc@sourceware.org Cc: "Yann E. MORIN" Subject: Re: gold vs. CT_STATIC_TOOLCHAIN Message-ID: <20111213172335.GA11420@sig21.net> References: <20111202132450.GA24105@sig21.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111202132450.GA24105@sig21.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00045.txt.bz2 Hi, On Fri, Dec 02, 2011 at 02:24:50PM +0100, Johannes Stezenbach wrote: > 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) any comments on this? I could send clean, tested patches but I won't spend my time if no one is interested. Johannes > 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 > > -- For unsubscribe information see http://sourceware.org/lists.html#faq