qt55.qmakeHook: fix error when package builds no libraries

This commit is contained in:
Thomas Tuegel 2016-05-04 05:58:02 -05:00
parent 65a9fa8cdc
commit 099c59ea4e

View File

@ -57,11 +57,13 @@ _qtMultioutModuleDevs() {
# Move libtool archives and qmake project files to $dev/lib
if [ "z${!outputLib}" != "z${!outputDev}" ]; then
pushd "${!outputLib}"
find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \
while read -r -d $'\0' file; do
mkdir -p "${!outputDev}/$(dirname "$file")"
mv "${!outputLib}/$file" "${!outputDev}/$file"
done
if [ -d "lib" ]; then
find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \
while read -r -d $'\0' file; do
mkdir -p "${!outputDev}/$(dirname "$file")"
mv "${!outputLib}/$file" "${!outputDev}/$file"
done
fi
popd
fi
}