aboutsummaryrefslogtreecommitdiffstats
path: root/strip_files
diff options
context:
space:
mode:
Diffstat (limited to 'strip_files')
-rwxr-xr-xstrip_files7
1 files changed, 2 insertions, 5 deletions
diff --git a/strip_files b/strip_files
index 1b884a9..1178ad2 100755
--- a/strip_files
+++ b/strip_files
@@ -16,9 +16,10 @@ use File::Find;
# for use by File::Find. It'll fill the following 3 arrays with anything
# it finds:
my (@shared_libs, @executables, @static_libs);
-my $exclude_files=defined($ENV{EXCLUDE_FROM_STRIP}) ? split(' ',$ENV{EXCLUDE_FROM_STRIP}) : ();
+my $exclude_files=defined($ENV{EXCLUDE_FROM_STRIP}) ? split(' ',$ENV{EXCLUDE_FROM_STRIP}) : undef;
sub testfile {
+
return if -l $_ or -d $_; # Skip directories and symlinks always.
$fn="$File::Find::dir/$_";
@@ -76,8 +77,4 @@ foreach (@executables) {
system("strip","--remove-section=.comment","--remove-section=.note",$_);
}
-# foreach (@static_libs) {
-# system("strip","--strip-debug",$_);
-# }
-
# strip_files ends here