CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Replaced libdir value in .la files instead of remove them
[pkgutils-cross.git] / pkgadd-cross
index 168617144c86562320b666f7b170e38323cef231..c1ac751b493c034008955ff43abf1876957337cd 100755 (executable)
@@ -39,4 +39,12 @@ done
 
 $PKGADD -c $PKGADD_CONF -r $CLFS $ARGS
 
+# we need to adjust .la files for our temporary root filesystem tree (CLFS)
+if [ $? -eq 0 ]; then
+  LIBTOOL_FILES=$(tar tf $PATH_TO_PACKAGE | grep '.la')
+  for la_file in $LIBTOOL_FILES; do
+    sed -e "s|libdir='/|libdir='$CLFS/|" -i $CLFS/$la_file
+  done
+fi
+
 # End of file