mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: ensure binaries in /opt/* are stripped
The path selection for stripping binaries was slightly off, so any binaries in subdirectories of opt/ were missed. Fixes FS#9342. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
0775c38e72
commit
c028014f96
@ -754,7 +754,7 @@ tidy_install() {
|
||||
|
||||
if [ "$(check_option strip)" = "y" ]; then
|
||||
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
||||
for file in $(find {,usr/{,local/},opt/}{bin,lib,sbin} -type f 2>/dev/null || true); do
|
||||
for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f 2>/dev/null || true); do
|
||||
case "$(file -biz "$file")" in
|
||||
*application/x-sharedlib*) # Libraries
|
||||
/usr/bin/strip --strip-debug "$file";;
|
||||
|
Loading…
Reference in New Issue
Block a user