CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
iproute2: fixed CFLAGS usage
authorJose V Beneyto <sepen@crux.nu>
Wed, 3 Mar 2010 15:18:27 +0000 (16:18 +0100)
committerJose V Beneyto <sepen@crux.nu>
Wed, 3 Mar 2010 15:18:27 +0000 (16:18 +0100)
iproute2/Pkgfile

index 0e8042e11c0f7278e92e78f8e4fbe8156ae1fad9..be07078e5eeeff4b89f928309db92277bf0b9247 100644 (file)
@@ -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
 }