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
commit27697f5609fa6dca8fb0de2c9af77c7eea46b6f5 (patch)
tree3402356c002d54d9a8f12c3f408392ecdfb4ed11 /eclass/toolchain-binutils.eclass
parentmake sure 5005 multilib patch is excluded for older gentoo-libdir amd64 syste... (diff)
downloadhistorical-27697f5609fa6dca8fb0de2c9af77c7eea46b6f5.tar.gz
historical-27697f5609fa6dca8fb0de2c9af77c7eea46b6f5.tar.bz2
historical-27697f5609fa6dca8fb0de2c9af77c7eea46b6f5.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}"