Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: src_compile.eblit
Date: Tue, 25 Dec 2012 20:08:51
Message-Id: 20121225200840.246AF2171D@flycatcher.gentoo.org
1 vapier 12/12/25 20:08:40
2
3 Modified: src_compile.eblit
4 Log:
5 Force usage of bfd linker if active linker is gold #269274 by Chris Smith.
6
7 (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
8
9 Revision Changes Path
10 1.30 sys-libs/glibc/files/eblits/src_compile.eblit
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit?rev=1.30&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit?rev=1.30&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit?r1=1.29&r2=1.30
15
16 Index: src_compile.eblit
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit,v
19 retrieving revision 1.29
20 retrieving revision 1.30
21 diff -u -r1.29 -r1.30
22 --- src_compile.eblit 18 Nov 2012 08:06:49 -0000 1.29
23 +++ src_compile.eblit 25 Dec 2012 20:08:39 -0000 1.30
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2012 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit,v 1.29 2012/11/18 08:06:49 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit,v 1.30 2012/12/25 20:08:39 vapier Exp $
29
30 glibc_do_configure() {
31 local myconf
32 @@ -117,7 +117,15 @@
33 for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC {AS,C,CPP,CXX,LD}FLAGS ; do
34 einfo " $(printf '%15s' ${v}:) ${!v}"
35 done
36 +
37 export CC=$(tc-getCC ${CTARGET})
38 + # Glibc does not work with gold (for various reasons) #269274.
39 + if $(tc-getLD ${CTARGET}) --version | grep -q 'GNU gold' ; then
40 + local d="${T}/bfd-linker"
41 + mkdir -p "${d}"
42 + ln -sf $(which ${CTARGET}-ld.bfd) "${d}"/ld
43 + CC+=" -B${d}"
44 + fi
45 einfo " $(printf '%15s' 'Manual CC:') ${CC}"
46 echo