summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-17 07:54:16 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-17 07:54:16 +0000
commit29e86fe02b1889b0f1f7f97138335e1d5fd0147c (patch)
tree0c0e3f65aba306f47d2769f1a74a0016ddab75a7 /eclass
parent(#147872) Require libdrm 2.0.2. At least the r200 driver needs it, maybe more. (diff)
downloadgentoo-2-29e86fe02b1889b0f1f7f97138335e1d5fd0147c.tar.gz
gentoo-2-29e86fe02b1889b0f1f7f97138335e1d5fd0147c.tar.bz2
gentoo-2-29e86fe02b1889b0f1f7f97138335e1d5fd0147c.zip
add support for gcc-2 in setting IUSE #124578 by Harald van Dijk
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass26
1 files changed, 15 insertions, 11 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 904ebd98ebca..f65e936e360f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.307 2006/09/12 21:23:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.308 2006/09/17 07:54:16 vapier Exp $
HOMEPAGE="http://gcc.gnu.org/"
LICENSE="GPL-2 LGPL-2.1"
@@ -138,22 +138,26 @@ else
IUSE="multislot test"
if [[ ${PN} != "kgcc64" ]] ; then
- IUSE="${IUSE} altivec bootstrap build doc fortran gcj gtk hardened multilib nls nocxx objc vanilla"
+ IUSE="${IUSE} altivec build fortran nls nocxx"
[[ -n ${PIE_VER} ]] && IUSE="${IUSE} nopie"
[[ -n ${PP_VER} ]] && IUSE="${IUSE} nossp"
[[ -n ${HTB_VER} ]] && IUSE="${IUSE} boundschecking"
- # gcc-{nios2,bfin} don't accept these
- if [[ ${PN} == "gcc" ]] ; then
- IUSE="${IUSE} ip28 ip32r10k n32 n64"
- fi
+ if version_is_at_least 3 ; then
+ IUSE="${IUSE} bootstrap doc gcj gtk hardened multilib objc vanilla"
+
+ # gcc-{nios2,bfin} don't accept these
+ if [[ ${PN} == "gcc" ]] ; then
+ IUSE="${IUSE} ip28 ip32r10k n32 n64"
+ fi
- # these are features introduced in 4.0
- if tc_version_is_at_least "4.0" ; then
- IUSE="${IUSE} objc-gc mudflap"
+ # these are features introduced in 4.0
+ if tc_version_is_at_least "4.0" ; then
+ IUSE="${IUSE} objc-gc mudflap"
- if tc_version_is_at_least "4.1" ; then
- IUSE="${IUSE} objc++"
+ if tc_version_is_at_least "4.1" ; then
+ IUSE="${IUSE} objc++"
+ fi
fi
fi
fi