diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 00beb76..449a281 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1886,7 +1886,7 @@ tidy_install() { fi local binary strip_flags - find . -type f -perm -u+w -print0 2>/dev/null | while read -rd '' binary ; do + find . -type f -print0 2>/dev/null | while read -rd '' binary ; do case "$(file -bi "$binary")" in *application/x-sharedlib*) # Libraries (.so) strip_flags="$STRIP_SHARED";; @@ -1904,6 +1904,7 @@ tidy_install() { *) continue ;; esac + chmod u+w "$binary" strip_file "$binary" ${strip_flags} done fi