`.o` objects used to be omitted by strip.sh due to a missing match in the `Relocatable file` section. This patch fixes the issue by handling `.o` objects similar to kernel modules.
fixes FS#74941
---
scripts/libmakepkg/tidy/strip.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/libmakepkg/tidy/strip.sh.in
b/scripts/libmakepkg/tidy/strip.sh.in
index 688bcf1b..71fe8e88 100644
--- a/scripts/libmakepkg/tidy/strip.sh.in
+++ b/scripts/libmakepkg/tidy/strip.sh.in
@@ -155,7 +155,7 @@ tidy_strip() {
if ar t "$binary" &>/dev/null; then # Libraries (.a)
strip_flags="$STRIP_STATIC"
STRIPLTO=1
- elif [[ $binary = *'.ko' ]]; then # Kernel module
+ elif [[ $binary = *'.ko' || $binary = *'.o' ]]; then # Kernel module
or object
strip_flags="$STRIP_SHARED"
else
continue
--
2.36.1
signature.asc
Description: PGP signature
