From: Jose V Beneyto Date: Wed, 3 Mar 2010 15:18:27 +0000 (+0100) Subject: iproute2: fixed CFLAGS usage X-Git-Url: http://gitweb/?a=commitdiff_plain;h=28439a6c650fcb26c02da3a957417a659f01a865;p=crossrootfs.git iproute2: fixed CFLAGS usage --- diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile index 0e8042e..be07078 100644 --- a/iproute2/Pkgfile +++ b/iproute2/Pkgfile @@ -12,9 +12,13 @@ source=(http://developer.osdl.org/dev/iproute2/download/$name-$version.tar.bz2 \ build() { cd $name-$version + sed -i "s|local/lib/iptables|lib/xtables|" include/iptables.h - make DBM_INCLUDE="$CLFS/usr/include" CC="$CC" + sed -i "s|gcc |$CC $CFLAGS|g" configure + + make DBM_INCLUDE="$CLFS/usr/include" CC="$CC $CFLAGS" make MANDIR=/usr/man DESTDIR=$PKG install + rm -r $PKG/{share,usr/lib} install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net }