From 24cdd993ca8cf36afa640a4d88c062ab49903d94 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Jul 10 2016 13:44:34 +0000 Subject: Followup to <820be1bcb38273c0c7adc44b4a474c08273cdf61>. --- diff --git a/pkg.build b/pkg.build index 1f828de..c95e820 100644 --- a/pkg.build +++ b/pkg.build @@ -176,15 +176,13 @@ if ! is_build_script_done install; then find ${PKG_PREFIX}/lib -type f -name \*.la -exec rm -f -- {} \; fi; if test_cmd perk && test_cmd ${PKG_TARGET}-dlltool; then - set +o noglob; for __so_fname in \ - *.so \ - *.so.[0-9] \ - *.so.[0-9].[0-9] \ - *.so.[0-9].[0-9].[0-9]; + $(find \( -name "*.so" \ + -or -name "*.so.[0-9]" \ + -or -name "*.so.[0-9].[0-9]" \ + -or -name "*.so.[0-9].[0-9].[0-9]" \) -printf "%P\n"); do - if [ \( ! -e "${__so_fname}" \) -o \ - -e ${__so_fname%.so}.def ]; + if [ -e ${__so_fname%.so}.def ]; then continue; else @@ -199,7 +197,6 @@ if ! is_build_script_done install; then cp -- ${__so_fname%.so}.lib.a "${PKG_PREFIX}/lib"; fi; done; - set -o noglob; fi; if [ -n "${PKG_INSTALL_FILES}" ]; then (set -- ${PKG_INSTALL_FILES};