CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
added eabi support to CFLAGS
[pkgutils-cross.git] / pkgadd-cross
index 564410cda07b856f76081499313408d45876f20d..8ecac21927a0dbb003b7c823001650f6b551e8de 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-TOPDIR="$(cd $(dirname $0); pwd)"
+TOPDIR="$(cd $(dirname $(which $0)); pwd)"
 
 PKGADD=$TOPDIR/src/pkgadd
 PKGMK_CONF=$TOPDIR/src/pkgmk.conf
@@ -14,4 +14,8 @@ fi
 
 $PKGADD -r $CLFS $@
 
+# we shoudl avoid .la files when crosscompiling, these files
+# contains the libdir variable hardcoded which is used by libtool
+[ $? -eq 0 ] && find $CLFS -type f -name '*.la' -delete
+
 # End of file