index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2013-10-31 23:24:26 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-11-08 09:28:02 +1000 |
commit | fe824f87b9f1e40d88bd1a190a0bc1c80f2e91eb (patch) | |
tree | 8c6675e67984c362833847b65be3497cab15c0bb /scripts | |
parent | 5c5b28833c0c47d31c58d40cd13b69227de6eb48 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b2cc8e27..e01e7ab3 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1584,7 +1584,12 @@ tidy_install() { if check_option "staticlibs" "n"; then msg2 "$(gettext "Removing static library files...")" - find . ! -type d -name "*.a" -exec rm -f -- '{}' + + local l + while read -rd '' l; do + if [[ -f "${l%.a}.so" ]]; then + rm "$l" + fi + done < <(find . ! -type d -name "*.a" -print0) fi if check_option "emptydirs" "n"; then |