cross compile fixes
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 Dec 2004 02:36:01 +0000 (02:36 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 8 Dec 2004 02:36:01 +0000 (02:36 +0000)
sys-apps/debianutils/debianutils-1.16.7-r4.ebuild
sys-apps/portage/portage-2.0.51-r8.ebuild

index c74b549ab80639746e53a79335441976395699f7..117011c7765caca2f3d49ef7e9cd95522cf387e7 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-1.16.7-r4.ebuild,v 1.16 2004/11/28 12:47:07 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-1.16.7-r4.ebuild,v 1.17 2004/12/08 02:34:04 vapier Exp $
 
-inherit eutils
+inherit eutils flag-o-matic toolchain-funcs
 
 DESCRIPTION="A selection of tools from Debian"
 HOMEPAGE="http://packages.debian.org/unstable/base/debianutils.html"
@@ -14,8 +14,7 @@ KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ppc-macos s390 sh sparc x86"
 IUSE="static build"
 
 DEPEND="virtual/libc"
-RDEPEND="app-arch/bzip2
-       !ppc-macos? ( sys-apps/coreutils )"
+RDEPEND="app-arch/bzip2"
 
 src_unpack() {
        unpack ${A}
@@ -35,12 +34,8 @@ src_unpack() {
 }
 
 src_compile() {
-       if use static
-       then
-               emake LDFLAGS=-static || die
-       else
-               emake || die
-       fi
+       use static && append-ldflags -static
+       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die
 }
 
 src_install() {
index 196dad3d3618550ac2cf7b42ef4d4fe3df72d91e..329820044f403d137154acdfdd2c3a28f03b59ea 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51-r8.ebuild,v 1.2 2004/12/07 06:09:40 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51-r8.ebuild,v 1.3 2004/12/08 02:36:01 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 # If the old /lib/sandbox.so is in /etc/ld.so.preload, it can
 # cause everything to segfault !!
@@ -58,6 +58,7 @@ src_unpack() {
 src_compile() {
        cd ${S}/src; ${CC:-gcc} ${CFLAGS} tbz2tool.c -o tbz2tool
        cd ${S}/src/sandbox-1.1
+       export CC="$(tc-getCC)"
        case ${ARCH} in
                "x86")
                        make CFLAGS="-march=i386 -O1 -pipe" || die