summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-05-24 16:57:43 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-05-24 16:57:43 +0000
commit4a0c0ca86a5f614a7fb6db52f3c72b68673c8d54 (patch)
tree3e03adda6fc9d2327ef6458d4d7a04f8f2a2eefa /eclass
parentsparc stable wrt #260692 (diff)
downloadgentoo-2-4a0c0ca86a5f614a7fb6db52f3c72b68673c8d54.tar.gz
gentoo-2-4a0c0ca86a5f614a7fb6db52f3c72b68673c8d54.tar.bz2
gentoo-2-4a0c0ca86a5f614a7fb6db52f3c72b68673c8d54.zip
Add fix for bug #262105, sparc-only
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 226af1a7bd71..8294df0245bd 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.398 2009/05/07 23:56:12 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.399 2009/05/24 16:57:43 armin76 Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1400,6 +1400,7 @@ gcc_do_configure() {
# create a sparc*linux*-{gcc,g++} that can handle -m32 and -m64 (biarch)
if [[ ${CTARGET} == sparc*linux* ]] \
&& is_multilib \
+ && ! is_crosscompile \
&& [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]]
then
confgcc="${confgcc} --enable-targets=all"