summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-09-30 00:01:28 +0000
committerJason Wever <weeve@gentoo.org>2003-09-30 00:01:28 +0000
commit4049e1587ba70a8c121326a732df66088ddc754b (patch)
treef63e06091ccab2622ca82f8c7adf221708b99c95 /dev-libs/dietlibc/dietlibc-0.22-r2.ebuild
parentadded sparc keyword (diff)
downloadgentoo-2-4049e1587ba70a8c121326a732df66088ddc754b.tar.gz
gentoo-2-4049e1587ba70a8c121326a732df66088ddc754b.tar.bz2
gentoo-2-4049e1587ba70a8c121326a732df66088ddc754b.zip
Added sparc64 fix for bug #27171.
Diffstat (limited to 'dev-libs/dietlibc/dietlibc-0.22-r2.ebuild')
-rw-r--r--dev-libs/dietlibc/dietlibc-0.22-r2.ebuild21
1 files changed, 18 insertions, 3 deletions
diff --git a/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild b/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild
index 2bbb28001503..9576cc5d0d2f 100644
--- a/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild
+++ b/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild,v 1.5 2003/08/11 19:50:49 wwoods Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.22-r2.ebuild,v 1.6 2003/09/30 00:01:18 weeve Exp $
inherit eutils flag-o-matic
filter-flags "-fstack-protector"
@@ -30,11 +30,26 @@ src_unpack() {
}
src_compile() {
- emake || die
+# Added by Jason Wever <weeve@gentoo.org>
+# Fix for bug #27171.
+# dietlibc assumes that if uname -m is sparc64, then gcc is 64 bit
+# but this is not the case on Gentoo currently.
+
+ if [ "${ARCH}" = "sparc" -a "${PROFILE_ARCH}" = "sparc64" ]; then
+ cd ${S}
+ /bin/sparc32 make
+ else
+ emake || die
+ fi
}
src_install() {
- make install || die
+ if [ "${ARCH}" = "sparc" -a "${PROFILE_ARCH}" = "sparc64" ]; then
+ cd ${S}
+ /bin/sparc32 make install
+ else
+ make install || die
+ fi
exeinto /usr/bin
# newexe bin-i386/diet-i diet