libmakepkg: Fix non-reproducible binaries by processing debuginfo in order

This commit is contained in:
kpcyrd 2023-08-27 13:03:40 +02:00
parent 2c45e854ab
commit 843bf21e79

View file

@ -152,7 +152,7 @@ tidy_strip() {
fi
local binary strip_flags
find . -type f -perm -u+w -print0 2>/dev/null | while IFS= read -rd '' binary ; do
find . -type f -perm -u+w -print0 2>/dev/null | LC_ALL=C sort -z | while IFS= read -rd '' binary ; do
local STRIPLTO=0
case "$(LC_ALL=C readelf -h "$binary" 2>/dev/null)" in
*Type:*'DYN (Shared object file)'*) # Libraries (.so) or Relocatable binaries