diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-12-11 06:12:06 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-12-11 06:12:06 +0000 |
commit | be9528f72d4562dffd4c97e5580c42da6aa7d744 (patch) | |
tree | 8c99ef97b7f11c360ce7f32b24fc4a4aea998bf3 /sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild | |
parent | New version (Manifest recommit) (diff) | |
download | gentoo-2-be9528f72d4562dffd4c97e5580c42da6aa7d744.tar.gz gentoo-2-be9528f72d4562dffd4c97e5580c42da6aa7d744.tar.bz2 gentoo-2-be9528f72d4562dffd4c97e5580c42da6aa7d744.zip |
Updated for sparc64-multilib. Added patch to properly detect sparc64b CHOST.
Diffstat (limited to 'sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild')
-rw-r--r-- | sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild b/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild index fbdc1fc5370f..692ba27ce00f 100644 --- a/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild +++ b/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild @@ -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/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild,v 1.15 2004/12/09 23:46:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.15.92.0.2-r1.ebuild,v 1.16 2004/12/11 06:12:06 eradicator Exp $ inherit eutils libtool flag-o-matic gnuconfig @@ -46,6 +46,9 @@ src_unpack() { rm -rf ${x}.orig done + # Fix regexps in configure.host + epatch ${FILESDIR}/2.15/10_sparc_binutils-sparc64-multilib.patch + gnuconfig_update } @@ -134,17 +137,28 @@ src_install() { ln -s ../${CHOST}/bin/${x} ${x} done - if [ -n "${PROFILE_ARCH}" ] && \ - [ "${PROFILE_ARCH/64}" != "${PROFILE_ARCH}" ] - then - dosym ${CHOST} /usr/${CHOST/-/64-} - - for x in `ls ${D}/usr/${CHOST}/bin/` - do - [ ! -e "${D}/usr/bin/${CHOST}-${x}" ] && \ - dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST}-${x} - dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST/-/64-}-${x} - done + if [ -n "${PROFILE_ARCH}" ]; then + if [ "${PROFILE_ARCH}" = "sparc64-multilib" ]; then + dosym ${CHOST} /usr/${CHOST32} + + for x in `ls ${D}/usr/${CHOST}/bin/` + do + [ ! -e "${D}/usr/bin/${CHOST}-${x}" ] && \ + dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST}-${x} + dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST32}-${x} + [ ! -e "${D}/usr/bin/${CHOST32}-${x}" ] && \ + dosym ../${CHOST32}/bin/${x} /usr/bin/${CHOST32}-${x} + done + elif [ "${PROFILE_ARCH/64}" != "${PROFILE_ARCH}" ]; then + dosym ${CHOST} /usr/${CHOST/-/64-} + + for x in `ls ${D}/usr/${CHOST}/bin/` + do + [ ! -e "${D}/usr/bin/${CHOST}-${x}" ] && \ + dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST}-${x} + dosym ../${CHOST}/bin/${x} /usr/bin/${CHOST/-/64-}-${x} + done + fi fi cd ${S} |