diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-05-17 01:21:25 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-05-17 01:21:25 +0000 |
commit | 05797fee59328410011f523ea2d8316a9ad511e5 (patch) | |
tree | e28a4f91db2900b4b660b8304a712d840052857a | |
parent | e5cd5e345f97ad9e7a4317f9da436098743679e9 (diff) |
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
-rw-r--r-- | chapter01/changelog.xml | 4 | ||||
-rw-r--r-- | chapter06/strippingagain.xml | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0aaa3c2b1..430fb33a1 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,10 @@ <para>2016-05-16</para> <itemizedlist> <listitem> + <para>[bdubbs] - Enhance the stripping commands at the end + of Chapter 6.</para> + </listitem> + <listitem> <para>[bdubbs] - Made editorial changes to the kernel section. </para> </listitem> 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 |