# 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