Changeset 6e41459 for chapter05/stripping.xml
- Timestamp:
- 08/08/2004 02:10:39 AM (20 years ago)
- Branches:
- 6.0
- Children:
- ef13657
- Parents:
- 78349b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/stripping.xml
r78349b7 r6e41459 8 8 <?dbhtml filename="stripping.html"?> 9 9 10 <para>The steps in this section are optional, but if your LFS partition is 11 rather small, you will be glad to learn that you can remove some unnecessary 12 things. The executables and libraries you have built so far contain about 130 13 MB of unneeded debugging symbols. Remove those symbols with:</para> 10 <para>The steps in this section are optional, but if the LFS partition 11 is rather small, it is beneficial to learn that unnecessary items can 12 be removed. The executables and libraries built so far contain about 13 130 MB of unneeded debugging symbols. Remove those symbols 14 with:</para> 14 15 15 16 <screen><userinput>strip --strip-debug /tools/lib/* 16 17 strip --strip-unneeded /tools/{,s}bin/*</userinput></screen> 17 18 18 <para>The last of the above commands will skip some twenty files, reporting19 that it doesn't recognize their file format. Most of them are scripts instead 20 of binaries.</para>19 <para>The last of the above commands will skip some twenty files, 20 reporting that it does not recognize their file format. Most of these 21 are scripts instead of binaries.</para> 21 22 22 23 <para>Take care <emphasis>not</emphasis> to use 23 <parameter>--strip-unneeded</parameter> on the libraries -- the static ones24 would be destroyed and you would have to build the three toolchain packages 25 all over again.</para>24 <parameter>--strip-unneeded</parameter> on the libraries. The static 25 ones would be destroyed and the toolchain packages would need to be 26 built all over again.</para> 26 27 27 <para>To save another 30 MB, you canremove all the documentation:</para>28 <para>To save another 30 MB, remove all the documentation:</para> 28 29 29 30 <screen><userinput>rm -rf /tools/{doc,info,man}</userinput></screen> 30 31 31 <para>You will now need to have at least 850 MB of free space on your LFS 32 file system to be able to build and install Glibc in the next phase. If you can 33 build and install Glibc, you can build and install the rest too.</para> 32 <para>There will now be at least 850 MB of free space on the LFS file 33 system that can be used to build and install Glibc in the next phase. 34 If you can build and install Glibc, you can build and install the rest 35 too.</para> 34 36 35 37 </sect1> 38
Note:
See TracChangeset
for help on using the changeset viewer.