diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-04 05:55:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-04 05:55:29 +0000 |
commit | 9e89d7396bb986b087d8e0c9b39ec17cdbf89f80 (patch) | |
tree | 1936f3ed6fd4a2886ce2c1d1c273fcdb54039803 /eclass | |
parent | Temporary -* masking due to problem with FASL output paths in CLC. (diff) | |
download | historical-9e89d7396bb986b087d8e0c9b39ec17cdbf89f80.tar.gz historical-9e89d7396bb986b087d8e0c9b39ec17cdbf89f80.tar.bz2 historical-9e89d7396bb986b087d8e0c9b39ec17cdbf89f80.zip |
add support for obj-c++ and disable libssp
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index b184e6f68f1a..2e20650b0924 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# 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.246 2006/03/03 02:14:50 halcy0n Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.247 2006/03/04 05:55:29 vapier Exp $ HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" LICENSE="GPL-2 LGPL-2.1" @@ -146,11 +146,15 @@ else # these are features introduced in 4.0 if version_is_at_least "4.0" ; then IUSE="${IUSE} objc-gc mudflap" - fi - # >=4.0 doesn't support hardened yet - if ! version_is_at_least "4.0" ; then - IUSE="${IUSE} hardened" + # =4.0* doesn't support hardened yet + if [[ ${PV} == 4.0* ]] ; then + IUSE="${IUSE} hardened" + fi + + if version_is_at_least "4.1" ; then + IUSE="${IUSE} objc++" + fi fi # Support upgrade paths here or people get pissed @@ -1080,6 +1084,7 @@ gcc-compiler-configure() { if version_is_at_least "4.0" ; then confgcc="${confgcc} $(use_enable mudflap libmudflap)" + confgcc="${confgcc} --disable-libssp" fi # GTK+ is preferred over xlib in 3.4.x (xlib is unmaintained @@ -1109,9 +1114,10 @@ gcc-compiler-configure() { GCC_LANG="c" is_cxx && GCC_LANG="${GCC_LANG},c++" is_gcj && GCC_LANG="${GCC_LANG},java" - if is_objc ; then + if is_objc || is_objcxx ; then GCC_LANG="${GCC_LANG},objc" use objc-gc && confgcc="${confgcc} --enable-objc-gc" + is_objcxx && GCC_LANG="${GCC_LANG},obj-c++" fi # fortran support just got sillier! the lang value can be f77 for @@ -2227,6 +2233,12 @@ is_objc() { use objc } +is_objcxx() { + gcc-lang-supported 'obj-c++' || return 1 + use build && return 1 + use objc++ +} + is_ada() { gcc-lang-supported ada || return 1 use build && return 1 |