diff --git a/common/hooks/post-install/03-strip-and-debug-pkgs.sh b/common/hooks/post-install/03-strip-and-debug-pkgs.sh index 866ecb19da8..60cc0999250 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -106,7 +106,7 @@ hook() { fi echo " Stripped library: ${f#$PKGDESTDIR}" _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') - pattern="^lib[[:alnum:]_-]+(.*)+\.so(\.[0-9]+)*$" + pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)*$" if [[ ${_soname} =~ $pattern ]]; then if [ ! -e ${PKGDESTDIR}/usr/lib/${fname} ]; then continue