From 6d3150ad9e1ca7d4a4a9161759d7ceb918c4c48c Mon Sep 17 00:00:00 2001 From: Ralf Hubert Date: Fri, 24 Apr 2026 07:38:01 +0200 Subject: [PATCH] strip: fix strip of shared libraries The file command returns `ELF 64-bit LSB shared object, x86-64, [..]` for shared libraries. Fix the pattern to match this. Otherwise shared libraries might miss some symbols. --- classes/strip.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/strip.yaml b/classes/strip.yaml index d24500d4..b354d443 100644 --- a/classes/strip.yaml +++ b/classes/strip.yaml @@ -24,7 +24,7 @@ packageSetup: | chmod u+w "$1" # shared libraries need to be treated with care - if [[ $1 == *.so* && $type == ELF*shared ]] ; then + if [[ $1 == *.so* && $type == ELF*shared* ]] ; then $STRIP --remove-section=.comment --remove-section=.note \ --strip-unneeded "$1" else