Speed up static archive stripping processing (#517101)

- only bother processing files named *.a instead of everything in buildroot
- patch from Adam Jackson
This commit is contained in:
Panu Matilainen 2010-01-22 15:26:58 +02:00
parent e56e816f47
commit 82f9946bc0
1 changed files with 1 additions and 1 deletions

View File

@ -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