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 | 7700bc7a45f7cedf858105190d10b568c66d7163 (patch) | |
tree | a5e49ba091f70efe64896460087c77626d3b33f8 /eclass | |
parent | ppc64 stable wrt #315687 (diff) | |
download | gentoo-2-7700bc7a45f7cedf858105190d10b568c66d7163.tar.gz gentoo-2-7700bc7a45f7cedf858105190d10b568c66d7163.tar.bz2 gentoo-2-7700bc7a45f7cedf858105190d10b568c66d7163.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" |