aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/stripping.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-16 11:56:28 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-16 11:56:28 +0000
commit675606bde2ba53946537b42a5aa576692a311621 (patch)
treeaf20c20ce3841c16b24d0b9903af6878a4a0f5a6 /chapter05/stripping.xml
parent560065f976e371779928dbf8b9428217f3f57331 (diff)
parent1cd59612d00603c9ce773ad821a15d20bc4fa0b7 (diff)
Split Chapter 5 into three separate chapters.
Implement a new method of cross-building the LFS tool chain and other tools to simplify the method of isolating the new system from the original host. This will be the start of LFS-10.0. Move old trunk/BOOK to branches/old-trunk. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11946 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/stripping.xml')
-rw-r--r--chapter05/stripping.xml46
1 files changed, 0 insertions, 46 deletions
diff --git a/chapter05/stripping.xml b/chapter05/stripping.xml
deleted file mode 100644
index dc55959bf..000000000
--- a/chapter05/stripping.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
-]>
-
-<sect1 id="ch-tools-stripping">
- <?dbhtml filename="stripping.html"?>
-
- <title>Stripping</title>
-
- <para>The steps in this section are optional, but if the LFS partition is
- rather small, it is beneficial to learn that unnecessary items can be removed.
- The executables and libraries built so far contain about 70 MB of unneeded
- debugging symbols. Remove those symbols with:</para>
-
-<screen><userinput>strip --strip-debug /tools/lib/*
-/usr/bin/strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
-
- <para>These commands will skip a number of files, reporting that it does not
- recognize their file format. Most of these are scripts instead of binaries.
- Also use the system strip command to include the strip binary in /tools.</para>
-
- <para>Take care <emphasis>not</emphasis> to use
- <parameter>--strip-unneeded</parameter> on the libraries. The static
- ones would be destroyed and the toolchain packages would need to be
- built all over again.</para>
-
- <para>To save more, remove the documentation:</para>
-
-<screen><userinput>rm -rf /tools/{,share}/{info,man,doc}</userinput></screen>
-
- <para>The libtool .la files are only useful when linking with static
- libraries. They are unneeded, and potentially harmful, when using dynamic
- shared libraries, specially when using also non-autotools build systems.
- Remove those files now:</para>
-
-<screen><userinput>find /tools/{lib,libexec} -name \*.la -delete</userinput></screen>
-
- <para>At this point, you should have at least 3 GB of free space in
- <envar>$LFS</envar> that can be used to build and install Glibc and Gcc in
- the next phase. If you can build and install Glibc, you can build and install
- the rest too.</para>
-
-</sect1>