aboutsummaryrefslogtreecommitdiffstats
path: root/strip_and_check_elf_files
diff options
context:
space:
mode:
Diffstat (limited to 'strip_and_check_elf_files')
-rwxr-xr-xstrip_and_check_elf_files5
1 files changed, 3 insertions, 2 deletions
diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files
index b11e099..c3c5301 100755
--- a/strip_and_check_elf_files
+++ b/strip_and_check_elf_files
@@ -22,8 +22,9 @@ sub strip_files {
my @to_strip = (@shared_libs, @executables);
if ($ENV{EXCLUDE_FROM_STRIP}) {
- my $exclude_pattern = qr/$ENV{EXCLUDE_FROM_STRIP}/;
- @to_strip = grep { !/$exclude_pattern/ } @to_strip;
+ my $exclude_pattern = join('|', split(/\s+/, $ENV{EXCLUDE_FROM_STRIP}));
+ my $compiled_pattern = qr/($exclude_pattern)/;
+ @to_strip = grep { !/$compiled_pattern/ } @to_strip;
}
system(