From daba762bad791045b54a6b796612cde82ed53acc Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Wed, 21 Aug 2013 08:58:58 +0000 Subject: [PATCH] Improved treatment for .la files in pkgadd-cross --- pkgadd-cross | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgadd-cross b/pkgadd-cross index c1ac751..61bb88f 100755 --- a/pkgadd-cross +++ b/pkgadd-cross @@ -41,7 +41,7 @@ $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') + LIBTOOL_FILES=$(tar tf $PATH_TO_PACKAGE 2>/dev/null | grep '\.la$') for la_file in $LIBTOOL_FILES; do sed -e "s|libdir='/|libdir='$CLFS/|" -i $CLFS/$la_file done -- 2.26.2