diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-08 00:12:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-08 00:12:25 +0000 |
commit | 469cc835ec4004101ba0e16737916abbd3e0d880 (patch) | |
tree | 5873fcbea950f96e34bc9bf7f1c4d3a064a8d984 /eclass | |
parent | booh; forgot the changelog (diff) | |
download | gentoo-2-469cc835ec4004101ba0e16737916abbd3e0d880.tar.gz gentoo-2-469cc835ec4004101ba0e16737916abbd3e0d880.tar.bz2 gentoo-2-469cc835ec4004101ba0e16737916abbd3e0d880.zip |
only pass --with-pkgversion with gcc-4.3+ as older versions of gcc have broken handling and it is easier to just not use the flag than worry about patching older versions #214583
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index ec5f623c4fc5..63a80fde7763 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.349 2008/04/07 06:31:09 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.350 2008/04/08 00:12:25 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1317,12 +1317,10 @@ gcc_do_configure() { [[ ${CTARGET} == *-uclibc* ]] && [[ ${GCCMAJOR}.${GCCMINOR} > 3.3 ]] \ && confgcc="${confgcc} --enable-clocale=uclibc" - set -- \ - ${confgcc} \ + tc_version_is_at_least 4.3 && set -- "$@" \ --with-bugurl=http://bugs.gentoo.org/ \ - --with-pkgversion="${BRANDING_GCC_PKGVERSION}" \ - "$@" \ - ${EXTRA_ECONF} + --with-pkgversion="${BRANDING_GCC_PKGVERSION}" + set -- ${confgcc} "$@" ${EXTRA_ECONF} # Nothing wrong with a good dose of verbosity echo |