From 05797fee59328410011f523ea2d8316a9ad511e5 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 17 May 2016 01:21:25 +0000 Subject: Enhance the stripping commands at the end of Chapter 6 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11064 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/strippingagain.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chapter06') diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml index 5492e679c..f09131035 100644 --- a/chapter06/strippingagain.xml +++ b/chapter06/strippingagain.xml @@ -39,8 +39,14 @@ Now the binaries and libraries can be safely stripped: -/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \ - -exec /tools/bin/strip --strip-debug '{}' ';' +/tools/bin/find /usr/lib -type f -name \*.a \ + -exec /tools/bin/strip --strip-debug {} ';' + +/tools/bin/find /lib /usr/lib -type f -name \*.so* \ + -exec /tools/bin/strip --strip-unneeded {} ';' + +/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \ + -exec /tools/bin/strip --strip-all {} ';' A large number of files will be reported as having their file format not recognized. These warnings can be safely ignored. These -- cgit v1.2.3-54-g00ecf