diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-09-17 07:54:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-09-17 07:54:16 +0000 |
commit | 0f4ea615e79369cef630fc4a70812d7a8ecdeabb (patch) | |
tree | 3b5c9e57f2e4cda14b7745cbd6eca60604261e17 /eclass/toolchain.eclass | |
parent | (#147872) Require libdrm 2.0.2. At least the r200 driver needs it, maybe more. (diff) | |
download | historical-0f4ea615e79369cef630fc4a70812d7a8ecdeabb.tar.gz historical-0f4ea615e79369cef630fc4a70812d7a8ecdeabb.tar.bz2 historical-0f4ea615e79369cef630fc4a70812d7a8ecdeabb.zip |
add support for gcc-2 in setting IUSE #124578 by Harald van Dijk
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 26 |
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 |