summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2010-12-09 01:32:33 +0000
committerRyan Hill <rhill@gentoo.org>2010-12-09 01:32:33 +0000
commit3890a2810533dc7a66acdabdb98497c903a73167 (patch)
tree5df8a3bfa6b3102104ba61ab608730b7b88e21f3 /eclass
parentold (diff)
downloadhistorical-3890a2810533dc7a66acdabdb98497c903a73167.tar.gz
historical-3890a2810533dc7a66acdabdb98497c903a73167.tar.bz2
historical-3890a2810533dc7a66acdabdb98497c903a73167.zip
Update gold configure for 2.21.51.0.2.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-binutils.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 813706dc3e6d..4afbdadbe105 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.93 2010/12/01 11:45:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.94 2010/12/09 01:32:33 dirtyepic Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -195,8 +195,11 @@ toolchain-binutils_src_compile() {
cd "${MY_BUILDDIR}"
set --
- # new versions allow gold and ld; screw older versions
- if grep -q 'enable-gold=both/ld' "${S}"/configure ; then
+ # enable gold if available (installed as ld.gold)
+ if grep -q 'enable-gold=default' "${S}"/configure ; then
+ set -- "$@" --enable-gold
+ # old ways - remove when 2.21 is stable
+ elif grep -q 'enable-gold=both/ld' "${S}"/configure ; then
set -- "$@" --enable-gold=both/ld
elif grep -q 'enable-gold=both/bfd' "${S}"/configure ; then
set -- "$@" --enable-gold=both/bfd