summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-21 05:06:48 +0000
committerMike Frysinger <vapier@gentoo.org>2009-11-21 05:06:48 +0000
commit22e173bc1e2878f7a28c9949509616d710a60e70 (patch)
treef802ff3de023fa54d3b5f1e1ac13c38af1657ac7 /eclass/toolchain-binutils.eclass
parentUpdate homepage url (diff)
downloadhistorical-22e173bc1e2878f7a28c9949509616d710a60e70.tar.gz
historical-22e173bc1e2878f7a28c9949509616d710a60e70.tar.bz2
historical-22e173bc1e2878f7a28c9949509616d710a60e70.zip
handle newer gold options where it can be installed with ld at the same time
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r--eclass/toolchain-binutils.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 5002759f2815..0908993fc98b 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.85 2009/09/06 16:58:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.86 2009/11/21 05:06:48 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -198,6 +198,12 @@ toolchain-binutils_src_compile() {
cd "${MY_BUILDDIR}"
local myconf=""
+ # new versions allow gold and ld while older allowed only one
+ if grep -q 'gold.*yes,both' "${S}"/configure ; then
+ myconf="${myconf} $(use_enable gold gold both) --enable-linker=bfd"
+ else
+ myconf="${myconf} $(use_enable gold)"
+ fi
use nls \
&& myconf="${myconf} --without-included-gettext" \
|| myconf="${myconf} --disable-nls"
@@ -221,7 +227,6 @@ toolchain-binutils_src_compile() {
--enable-64-bit-bfd \
--enable-shared \
--disable-werror \
- $(use_enable gold) \
${myconf} ${EXTRA_ECONF}"
echo ./configure ${myconf}
"${S}"/configure ${myconf} || die "configure failed"