mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Make stripping more efficient.
Finds all ELF objects and doesn't strip them twice.
This commit is contained in:
13
lfs/strip
13
lfs/strip
@@ -46,15 +46,4 @@ md5 :
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) :
|
||||
# Add -ls before -exec if you want to verify what files are in the path to be stripped
|
||||
# A running binary can't be stripped, so use the version from /tools
|
||||
# It may fail (signal 11) under circonstance not identified by me (Gilles),
|
||||
# to strip libc again so ignore the error now. Probably need a static strip for libc
|
||||
# Don't use --strip-all on libraries, or they'll be destroyed. Don't use --strip-unneeded, either.
|
||||
-/tools/bin/find /lib /usr/lib /usr/share/rrdtool-* /install/initrd/lib \
|
||||
-type f \( -name '*.so' -o -name '*.so[\.0-9]*' \) \
|
||||
-exec /tools/bin/strip --strip-debug {} \; 2>/dev/null
|
||||
|
||||
-/tools/bin/strip --strip-all /{,usr/}{,local/}{bin,sbin}/* /install/{initrd,misc}/bin/* /usr/lib/cyrus/* 2>/dev/null
|
||||
-/tools/bin/strip --strip-all /usr/lib/awk/{grcat,pwcat} 2>/dev/null
|
||||
-/tools/bin/strip --strip-all /usr/lib/gcc/*-linux-gnu/4.0.4/{cc1*,collect2} 2>/dev/null
|
||||
STRIP="/tools/bin/strip" $(DIR_SRC)/src/stripper /
|
||||
|
||||
Reference in New Issue
Block a user