From 8d2413e9dda1808dbb1fdd477fe3b4a1c6c43b58 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 6 May 2008 15:04:01 +0000 Subject: fix *old* typo, but keep current behaviour anyway (we would have noticed if the missing --strip-unneeded was breaking libs) --- strip_files | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/strip_files b/strip_files index 336b2ff..43ab258 100755 --- a/strip_files +++ b/strip_files @@ -23,20 +23,11 @@ $exclude_pattern = qr/$exclude_pattern/; my (@shared_libs, @executables, @static_libs); find(\&testfile, $buildroot); -# 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 @shared_libs, @executables; # TODO: we should write a binding for libfile... sub expensive_test { @@ -59,7 +50,7 @@ sub testfile() { if (m/\.so/) { # Ok, do the expensive test. if (expensive_test($_) =~ m/ELF.*shared/) { - push @executables, $File::Find::name; + push @shared_libs, $File::Find::name; return; } } -- cgit v1.2.1