diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-02 03:42:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-02 03:42:22 +0000 |
commit | 715127ca4edae1df6dd5c1fbcfa8f5df3658696d (patch) | |
tree | 32eddebcf7fe1cca5974105c2632aab8666f97db /eclass/toolchain-binutils.eclass | |
parent | Unmask distcc versions with the multilib goodies. (diff) | |
download | historical-715127ca4edae1df6dd5c1fbcfa8f5df3658696d.tar.gz historical-715127ca4edae1df6dd5c1fbcfa8f5df3658696d.tar.bz2 historical-715127ca4edae1df6dd5c1fbcfa8f5df3658696d.zip |
calculate the fake targets ourselves from CTARGET
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 5232bf1941b8..e9ebe9f2a876 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.18 2004/12/30 22:22:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.19 2005/01/02 03:42:22 vapier Exp $ # We install binutils into CTARGET-VERSION specific directories. This lets # us easily merge multiple versions for multiple targets (if we wish) and @@ -156,6 +156,21 @@ toolchain-binutils_src_install() { dodir /usr/${CTARGET}/{bin,include,lib} prepman ${DATAPATH} + # Now, some binutils are tricky and actually provide + # for multiple TARGETS. Really, we're talking just + # 32bit/64bit support (like mips/ppc/sparc). Here + # we want to tell binutils-config that it's cool if + # it generates multiple sets of binutil symlinks. + # e.g. sparc gets {sparc,sparc64}-unknown-linux-gnu + local targ=${CTARGET/-*} + local FAKE_TARGETS=${CTARGET} + case ${targ} in + mips|powerpc|sparc) + FAKE_TARGETS="${FAKE_TARGETS} ${CTARGET/-/64-}";; + mips64|powerpc64|sparc64) + FAKE_TARGETS="${FAKE_TARGETS} ${CTARGET/64-/-}";; + esac + # Generate an env.d entry for this binutils cd ${S} insinto /etc/env.d/binutils @@ -163,7 +178,7 @@ toolchain-binutils_src_install() { TARGET="${CTARGET}" VER="${PV}" LIBPATH="${LIBPATH}" -FAKE_TARGETS="${CTARGETS_BINUTILS}" +FAKE_TARGETS="${FAKE_TARGETS}" EOF newins env.d ${CTARGET}-${PV} |