diff options
author | 2011-12-08 22:38:33 +0000 | |
---|---|---|
committer | 2011-12-08 22:38:33 +0000 | |
commit | c9e154acfb1f7f7b5a55b0d8bedc69156c856485 (patch) | |
tree | 57655de3b76d17ad93a77804b1e8478ee7e3a723 /eclass | |
parent | Fix previous commit. (diff) | |
download | historical-c9e154acfb1f7f7b5a55b0d8bedc69156c856485.tar.gz historical-c9e154acfb1f7f7b5a55b0d8bedc69156c856485.tar.bz2 historical-c9e154acfb1f7f7b5a55b0d8bedc69156c856485.zip |
only use --with-abi for x86_64 targets with recent enough versions as reported by chutzpah
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index d77ce9a6f964..9bdc179d158a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.508 2011/12/08 18:11:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.509 2011/12/08 22:38:33 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -965,9 +965,17 @@ gcc-compiler-configure() { fi ;; # Add --with-abi flags to set default ABI - amd64|mips) + mips) confgcc+=" --with-abi=$(gcc-abi-map ${DEFAULT_ABI})" ;; + amd64) + # drop the 4.6.2 stuff once 4.7 goes stable + if tc_version_is_at_least 4.7 || + ( tc_version_is_at_least 4.6.2 && has x32 $(get_all_abis) ) + then + confgcc+=" --with-abi=$(gcc-abi-map ${DEFAULT_ABI})" + fi + ;; # Default arch for x86 is normally i386, lets give it a bump # since glibc will do so based on CTARGET anyways x86) |