summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-13 04:40:44 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-13 04:40:44 +0000
commita4e01dbf7014eb99caa4646863b245bcca9bcbcc (patch)
tree4b74db5f7f4019d146e614f56ed5c74b7d128d2a /eclass
parentVersion bump #112179 by PaX Team. (diff)
downloadgentoo-2-a4e01dbf7014eb99caa4646863b245bcca9bcbcc.tar.gz
gentoo-2-a4e01dbf7014eb99caa4646863b245bcca9bcbcc.tar.bz2
gentoo-2-a4e01dbf7014eb99caa4646863b245bcca9bcbcc.zip
add optional support for objc garbage collection #91222
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d3ef39195678..3160dfe5b60c 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.216 2005/11/11 02:30:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.217 2005/11/13 04:40:44 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -126,7 +126,7 @@ if [[ ${ETYPE} == "gcc-library" ]] ; then
IUSE="nls build"
SLOT="${CTARGET}-${SO_VERSION_SLOT:-5}"
else
- IUSE="altivec bootstrap build fortran gcj gtk hardened ip28 multilib multislot n32 n64 nls nocxx objc vanilla"
+ IUSE="altivec bootstrap build fortran gcj gtk hardened ip28 multilib multislot n32 n64 nls nocxx objc objc-gc vanilla"
[[ -n ${PIE_VER} ]] && IUSE="${IUSE} nopie"
[[ -n ${PP_VER} ]] && IUSE="${IUSE} nossp"
[[ -n ${HTB_VER} ]] && IUSE="${IUSE} boundschecking"
@@ -1076,8 +1076,11 @@ gcc-compiler-configure() {
GCC_LANG="c"
is_cxx && GCC_LANG="${GCC_LANG},c++"
- is_objc && GCC_LANG="${GCC_LANG},objc"
is_gcj && GCC_LANG="${GCC_LANG},java"
+ if is_objc ; then
+ GCC_LANG="${GCC_LANG},objc"
+ use objc-gc && confgcc="${confgcc} --enable-objc-gc"
+ fi
# fortran support just got sillier! the lang value can be f77 for
# fortran77, f95 for fortran95, or just plain old fortran for the