qt55.qmakeHook: fix error when package builds no libraries
This commit is contained in:
parent
65a9fa8cdc
commit
099c59ea4e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user