X-Git-Url: http://gitweb/?a=blobdiff_plain;f=pkgadd-cross;h=8ecac21927a0dbb003b7c823001650f6b551e8de;hb=a925319603b1dcc71dcfd4e4d2abd5291a73c72d;hp=564410cda07b856f76081499313408d45876f20d;hpb=b0b9d754d6b0b8314a8d4d8853bf16f1ac6d5261;p=pkgutils-cross.git diff --git a/pkgadd-cross b/pkgadd-cross index 564410c..8ecac21 100755 --- a/pkgadd-cross +++ b/pkgadd-cross @@ -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