diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 08:55:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 08:55:37 +0000 |
commit | 08ad7805d3c64b0608e6ea97e2dcd330340a426f (patch) | |
tree | 3aa0915f893700325c3bb2b0cf2574e9422b2ab2 | |
parent | Version bump, and add x32 patch. (diff) | |
download | gentoo-2-08ad7805d3c64b0608e6ea97e2dcd330340a426f.tar.gz gentoo-2-08ad7805d3c64b0608e6ea97e2dcd330340a426f.tar.bz2 gentoo-2-08ad7805d3c64b0608e6ea97e2dcd330340a426f.zip |
enable {bi,multi}arch support for ppc/x86 targets too #349405 by Denis Kaganovich
-rw-r--r-- | eclass/toolchain.eclass | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 9bdc179d158a..7a44ae84b998 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.509 2011/12/08 22:38:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.510 2011/12/10 08:55:37 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1178,14 +1178,14 @@ gcc_do_configure() { esac tc_version_is_at_least 3.4 || confgcc+=" --disable-libunwind-exceptions" - # create a sparc*linux*-{gcc,g++} that can handle -m32 and -m64 (biarch) - if [[ ${CTARGET} == sparc*linux* ]] \ - && is_multilib \ - && ! is_crosscompile \ - && tc_version_is_at_least 4.3 - then - confgcc+=" --enable-targets=all" - fi + # if the target can do biarch (-m32/-m64), enable it. overhead should + # be small, and should simplify building of 64bit kernels in a 32bit + # userland by not needing sys-devel/kgcc64. #349405 + case $(tc-arch) in + ppc|ppc64) tc_version_is_at_least 3.4 && confgcc+=" --enable-targets=all" ;; + sparc) tc_version_is_at_least 4.4 && confgcc+=" --enable-targets=all" ;; + amd64|x86) tc_version_is_at_least 4.3 && confgcc+=" --enable-targets=all" ;; + esac tc_version_is_at_least 4.3 && set -- "$@" \ --with-bugurl=http://bugs.gentoo.org/ \ |