aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstrip_files5
1 files changed, 4 insertions, 1 deletions
diff --git a/strip_files b/strip_files
index 03bd460..d03de2b 100755
--- a/strip_files
+++ b/strip_files
@@ -18,7 +18,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 = (split(' ', $ENV{EXCLUDE_FROM_STRIP}), "/usr/lib/debug");
+my @exclude_files = (
+ $ENV{EXCLUDE_FROM_STRIP} ? split(' ', $ENV{EXCLUDE_FROM_STRIP}) : (),
+ "/usr/lib/debug"
+);
# TODO: we should write a binding for libfile...
sub expensive_test {