source: chapter05/stripping.xml@ 1375d26

Last change on this file since 1375d26 was 1375d26, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter05/*.xml) RELAX NG validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1375d26]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1375d26]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-tools-stripping">
[673b0d8]8<title>Stripping</title>
9<?dbhtml filename="stripping.html"?>
10
11<para>The steps in this section are optional, but if your LFS partition is
12rather small, you will be glad to learn that you can remove some unnecessary
13things. The executables and libraries you have built so far contain about 130
14MB of unneeded debugging symbols. Remove those symbols with:</para>
15
16<screen><userinput>strip --strip-debug /tools/lib/*
17strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
18
19<para>The last of the above commands will skip some twenty files, reporting
20that it doesn't recognize their file format. Most of them are scripts instead
21of binaries.</para>
22
23<para>Take care <emphasis>not</emphasis> to use
[574b0ea]24<parameter>--strip-unneeded</parameter> on the libraries -- the static ones
[673b0d8]25would be destroyed and you would have to build the three toolchain packages
26all over again.</para>
27
28<para>To save another 30 MB, you can remove all the documentation:</para>
29
30<screen><userinput>rm -rf /tools/{doc,info,man}</userinput></screen>
31
32<para>You will now need to have at least 850 MB of free space on your LFS
33file system to be able to build and install Glibc in the next phase. If you can
34build and install Glibc, you can build and install the rest too.</para>
35
[1375d26]36</section>
Note: See TracBrowser for help on using the repository browser.