aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/strippingagain.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/strippingagain.xml')
-rw-r--r--chapter06/strippingagain.xml10
1 files changed, 8 insertions, 2 deletions
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 @@
<para>Now the binaries and libraries can be safely stripped:</para>
-<screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
- -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
+<screen><userinput>/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 {} ';'</userinput></screen>
<para>A large number of files will be reported as having their file
format not recognized. These warnings can be safely ignored. These