diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2008-07-06 02:41:54 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2008-07-06 02:41:54 +0000 |
commit | c65575723755e954f67efd6860f7f2bfe57bbac0 (patch) | |
tree | db900bf86a4f5e3f234cdb12a202997d6886fb5d /eclass/toolchain.eclass | |
parent | Fixup UTF8 for wormo. (diff) | |
download | gentoo-2-c65575723755e954f67efd6860f7f2bfe57bbac0.tar.gz gentoo-2-c65575723755e954f67efd6860f7f2bfe57bbac0.tar.bz2 gentoo-2-c65575723755e954f67efd6860f7f2bfe57bbac0.zip |
Filter out the objc-gc flag for <gcc-4.0. Thanks to Ryan Hill <dirtyepic AT gentoo DOT org> ; bug #137024
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index efd9b752024d..75a49a9cecb4 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.357 2008/06/22 13:57:42 bluebird Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.358 2008/07/06 02:41:54 halcy0n Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1186,7 +1186,9 @@ gcc-compiler-configure() { is_gcj && GCC_LANG="${GCC_LANG},java" if is_objc || is_objcxx ; then GCC_LANG="${GCC_LANG},objc" - use objc-gc && confgcc="${confgcc} --enable-objc-gc" + if tc_version_is_at_least "4.0" ; then + use objc-gc && confgcc="${confgcc} --enable-objc-gc" + fi is_objcxx && GCC_LANG="${GCC_LANG},obj-c++" fi is_treelang && GCC_LANG="${GCC_LANG},treelang" |