diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2010-07-21 20:19:57 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2010-07-21 20:19:57 +0000 |
commit | bda47c61fd5be525647145717b7c301d8846ef26 (patch) | |
tree | 9a8cb60526cf8b930a65e3aadee1cc3fceca3f1c /eclass | |
parent | ppc64 stable wrt #315687 (diff) | |
download | historical-bda47c61fd5be525647145717b7c301d8846ef26.tar.gz historical-bda47c61fd5be525647145717b7c301d8846ef26.tar.bz2 historical-bda47c61fd5be525647145717b7c301d8846ef26.zip |
Make recent gcc build with --enable-checking=release. Fix bug #317217
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 5c48512ba84d..d5510c277f8a 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.434 2010/07/05 22:25:09 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.435 2010/07/21 20:19:57 lu_zero Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1166,6 +1166,14 @@ gcc-compiler-configure() { if tc_version_is_at_least "4.4" ; then confgcc="${confgcc} --with-python-dir=${DATAPATH/$PREFIX/}/python" fi + + # For newer versions of gcc, use the default ("release"), because no + # one (even upstream apparently) tests with it disabled. #317217 + if tc_version_is_at_least 4 || [[ -n ${GCC_CHECKS_LIST} ]] ; then + confgcc="${confgcc} --enable-checking=${GCC_CHECKS_LIST:-release}" + else + confgcc="${confgcc} --disable-checking" + fi fi # GTK+ is preferred over xlib in 3.4.x (xlib is unmaintained @@ -1318,7 +1326,6 @@ gcc_do_configure() { # reasonably sane globals (hopefully) confgcc="${confgcc} \ --with-system-zlib \ - --disable-checking \ --disable-werror \ --enable-secureplt" |