summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-25 20:08:44 +0000
committerMike Frysinger <vapier@gentoo.org>2012-12-25 20:08:44 +0000
commit8c5bca9697c8ee1b57eb59ce6da42a70258caa7f (patch)
tree2005701693f660701a02ad3700d0928ff8687fc6 /sys-libs/glibc/files
parentVersion bump 1.8 branch (diff)
downloadhistorical-8c5bca9697c8ee1b57eb59ce6da42a70258caa7f.tar.gz
historical-8c5bca9697c8ee1b57eb59ce6da42a70258caa7f.tar.bz2
historical-8c5bca9697c8ee1b57eb59ce6da42a70258caa7f.zip
Force usage of bfd linker if active linker is gold #269274 by Chris Smith.
Package-Manager: portage-2.2.0_alpha144/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'sys-libs/glibc/files')
-rw-r--r--sys-libs/glibc/files/eblits/src_compile.eblit10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-libs/glibc/files/eblits/src_compile.eblit b/sys-libs/glibc/files/eblits/src_compile.eblit
index 355daeb9cf4e..8f89edca9c41 100644
--- a/sys-libs/glibc/files/eblits/src_compile.eblit
+++ b/sys-libs/glibc/files/eblits/src_compile.eblit
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit,v 1.29 2012/11/18 08:06:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_compile.eblit,v 1.30 2012/12/25 20:08:39 vapier Exp $
glibc_do_configure() {
local myconf
@@ -117,7 +117,15 @@ toolchain-glibc_src_compile() {
for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC {AS,C,CPP,CXX,LD}FLAGS ; do
einfo " $(printf '%15s' ${v}:) ${!v}"
done
+
export CC=$(tc-getCC ${CTARGET})
+ # Glibc does not work with gold (for various reasons) #269274.
+ if $(tc-getLD ${CTARGET}) --version | grep -q 'GNU gold' ; then
+ local d="${T}/bfd-linker"
+ mkdir -p "${d}"
+ ln -sf $(which ${CTARGET}-ld.bfd) "${d}"/ld
+ CC+=" -B${d}"
+ fi
einfo " $(printf '%15s' 'Manual CC:') ${CC}"
echo