summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-12 22:39:57 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-12 22:39:57 +0000
commitf3c43f97d3bbbac8a4c5be0ab7e2ad4e1d08a718 (patch)
tree9f5a1b0d56d78ad8ef2aeaa12975a48e372094da /eclass/toolchain-binutils.eclass
parentmake sure 5005 multilib patch is excluded for older gentoo-libdir amd64 syste... (diff)
downloadgentoo-2-f3c43f97d3bbbac8a4c5be0ab7e2ad4e1d08a718.tar.gz
gentoo-2-f3c43f97d3bbbac8a4c5be0ab7e2ad4e1d08a718.tar.bz2
gentoo-2-f3c43f97d3bbbac8a4c5be0ab7e2ad4e1d08a718.zip
add support for s390x multilib
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r--eclass/toolchain-binutils.eclass16
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 6293ec7a4327..3139f3399365 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.45 2005/09/23 23:52:33 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.46 2005/10/12 22:39:24 vapier Exp $
# We install binutils into CTARGET-VERSION specific directories. This lets
# us easily merge multiple versions for multiple targets (if we wish) and
@@ -185,14 +185,18 @@ toolchain-binutils_src_install() {
# 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 targ=${CTARGET/-*} src="" dst=""
local FAKE_TARGETS=${CTARGET}
case ${targ} in
- mips64*|powerpc64|sparc64*)
- FAKE_TARGETS="${FAKE_TARGETS} ${CTARGET/64-/-}";;
- mips*|powerpc|sparc*)
- FAKE_TARGETS="${FAKE_TARGETS} ${CTARGET/-/64-}";;
+ mips*) src="mips" dst="mips64";;
+ powerpc*) src="powerpc" dst="powerpc64";;
+ s390*) src="s390" dst="s390x";;
+ sparc*) src="sparc" dst="sparc64";;
esac
+ case ${targ} in
+ mips64*|powerpc64*|s390x*|sparc64*) targ=${src} src=${dst} dst=${targ};;
+ esac
+ [[ -n ${src}${dst} ]] && FAKE_TARGETS="${FAKE_TARGETS} ${CTARGET/${src}/${dst}}"
# Generate an env.d entry for this binutils
cd "${S}"