aboutsummaryrefslogtreecommitdiffstats
path: root/brp-strip
diff options
context:
space:
mode:
Diffstat (limited to 'brp-strip')
-rwxr-xr-xbrp-strip2
1 files changed, 1 insertions, 1 deletions
diff --git a/brp-strip b/brp-strip
index 6f0388c..7f52ed1 100755
--- a/brp-strip
+++ b/brp-strip
@@ -5,7 +5,7 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
fi
# Strip ELF binaries
-for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
+for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep -v ' shared object,' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do