aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstrip_files12
1 files changed, 4 insertions, 8 deletions
diff --git a/strip_files b/strip_files
index 0898ce1..aa72774 100755
--- a/strip_files
+++ b/strip_files
@@ -64,14 +64,10 @@ chdir($RPM_BUILD_ROOT) or die "Can't cd to $ENV{RPM_BUILD_ROOT}: $!";
@shared_libs = @executables = @static_libs = ();
find(\&testfile, $RPM_BUILD_ROOT);
-foreach (@shared_libs) {
- # Note that all calls to strip on shared libs
- # *must* inclde the --strip-unneeded.
- system("strip", "--remove-section=.comment", "--remove-section=.note", "--strip-unneeded",$_);
-}
+# Note that all calls to strip on shared libs *must* include the --strip-unneeded.
+system("strip", "--remove-section=.comment", "--remove-section=.note", "--strip-unneeded",$_) foreach @shared_libs;
+
+system("strip", "--remove-section=.comment", "--remove-section=.note",$_) foreach @executables;
-foreach (@executables) {
- system("strip", "--remove-section=.comment", "--remove-section=.note",$_);
-}
# strip_files ends here