diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 01:00:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 01:00:59 +0000 |
commit | 5cdad8665f5b8bf2925bae3a7d524db1dc09022e (patch) | |
tree | 4d870713102c5ba0449b8d0203ca1371de89ad8a | |
parent | Added ~sparc keyword. (Manifest recommit) (diff) | |
download | gentoo-2-5cdad8665f5b8bf2925bae3a7d524db1dc09022e.tar.gz gentoo-2-5cdad8665f5b8bf2925bae3a7d524db1dc09022e.tar.bz2 gentoo-2-5cdad8665f5b8bf2925bae3a7d524db1dc09022e.zip |
cross-compile fixes
-rw-r--r-- | net-misc/iputils/iputils-021109-r3.ebuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net-misc/iputils/iputils-021109-r3.ebuild b/net-misc/iputils/iputils-021109-r3.ebuild index cf91d8a5bfc3..dc233582596a 100644 --- a/net-misc/iputils/iputils-021109-r3.ebuild +++ b/net-misc/iputils/iputils-021109-r3.ebuild @@ -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/net-misc/iputils/iputils-021109-r3.ebuild,v 1.12 2004/11/12 15:49:57 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.13 2004/12/08 01:00:59 vapier Exp $ -inherit flag-o-matic gcc gnuconfig eutils +inherit flag-o-matic gnuconfig eutils toolchain-funcs DESCRIPTION="Network monitoring tools including ping and ping6" HOMEPAGE="ftp://ftp.inr.ac.ru/ip-routing" @@ -44,7 +44,7 @@ src_unpack() { sed -i \ -e "/^CCOPT=/s:-O2:${CFLAGS}:" \ - -e "/^CC=/s:gcc:$(gcc-getCC):" \ + -e "/^CC=/s:.*::" \ Makefile \ || die "sed Makefile opts failed" sed -i \ @@ -53,7 +53,7 @@ src_unpack() { || die "sed /usr/include failed" use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile - sed -i "s:-ll:-lfl ${LDFLAGS}:" setkey/Makefile || die "sed setkey failed" + sed -i "s:-ll:-lfl -L${ROOT}/usr/lib ${LDFLAGS}:" setkey/Makefile || die "sed setkey failed" sed -i 's:yacc:bison -y:' libipsec/Makefile #59191 @@ -62,6 +62,8 @@ src_unpack() { } src_compile() { + tc-export CC AR + if [ -e ${ROOT}/usr/include/linux/pfkeyv2.h ] ; then cd ${S}/libipsec emake || die "libipsec failed" |