development/build: Correct permissions on ELF libraries.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2023-10-26 21:34:19 +09:00 committed by Willy Sudiarto Raharjo
parent ac92f2139d
commit 994d2cc651
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -93,6 +93,8 @@ fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/lib*.so*
# Documentation should be in /usr
mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;