2
0

Fix lipo regression in build script.

This commit is contained in:
Maarten Billemont 2018-06-30 23:54:35 -04:00
parent 30dac64d5d
commit 4abb50ad9b

View File

@ -237,7 +237,7 @@ _finalize_merge() {
'macos'|'ios') 'macos'|'ios')
for lib in "$prefix/$archs/lib/"*; do for lib in "$prefix/$archs/lib/"*; do
if lipo -info "$lib" >/dev/null 2>&1; then if lipo -info "$lib" >/dev/null 2>&1; then
local lib=("${lib##*/}") libs=("${archs/#/$prefix/}") libs=("${libs[@]/%//lib/$lib}") local lib=("${lib##*/}") libs=("${archs[@]/#/$prefix/}") libs=("${libs[@]/%//lib/$lib}")
lipo -create "${libs[@]}" -output "$prefix/out/lib/$lib" lipo -create "${libs[@]}" -output "$prefix/out/lib/$lib"
fi fi
done done