diff --git a/brp-strip-static-archive b/brp-strip-static-archive index 786e7f3..150e700 100755 --- a/brp-strip-static-archive +++ b/brp-strip-static-archive @@ -8,7 +8,7 @@ fi [ -z "$STRIP" ] && STRIP=strip # Strip static libraries. -for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \ +for f in `find $RPM_BUILD_ROOT -name \*.a -a -exec file {} \; | \ grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ grep 'current ar archive' | \ sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p'`; do