strip: Include .o
files in strip operation
`.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 Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
478af273df
commit
de11824527
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ tidy_strip() {
|
||||||
if ar t "$binary" &>/dev/null; then # Libraries (.a)
|
if ar t "$binary" &>/dev/null; then # Libraries (.a)
|
||||||
strip_flags="$STRIP_STATIC"
|
strip_flags="$STRIP_STATIC"
|
||||||
STRIPLTO=1
|
STRIPLTO=1
|
||||||
elif [[ $binary = *'.ko' ]]; then # Kernel module
|
elif [[ $binary = *'.ko' || $binary = *'.o' ]]; then # Kernel module or object file
|
||||||
strip_flags="$STRIP_SHARED"
|
strip_flags="$STRIP_SHARED"
|
||||||
else
|
else
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue