diff options
Diffstat (limited to 'strip_and_check_elf_files')
-rwxr-xr-x | strip_and_check_elf_files | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index 0870e99..b11e099 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -22,9 +22,8 @@ sub strip_files { my @to_strip = (@shared_libs, @executables); if ($ENV{EXCLUDE_FROM_STRIP}) { - my $exclude_pattern = join('|', - map { '(:?' . quotemeta($_) . ')' } split(' ', $ENV{EXCLUDE_FROM_STRIP})); - @to_strip = grep { !/$exclude_pattern/ } @to_strip; + my $exclude_pattern = qr/$ENV{EXCLUDE_FROM_STRIP}/; + @to_strip = grep { !/$exclude_pattern/ } @to_strip; } system( |