source:
chapter05/chapter05.xml@
1b62790
Last change on this file since 1b62790 was 1668d8e, checked in by , 21 years ago | |
---|---|
|
|
File size: 1.8 KB |
Rev | Line | |
---|---|---|
[6370fa6] | 1 | <chapter id="chapter05"> |
[35c2fa60] | 2 | <title>Constructing a temporary system</title> |
[9ac3d35] | 3 | <?dbhtml filename="chapter05.html" dir="chapter05"?> |
[6370fa6] | 4 | |
5 | &c5-introduction; | |
[98c95f5] | 6 | &c5-toolchaintechnotes; |
[148bb04] | 7 | &c5-creatingtoolsdir; |
[5e40325] | 8 | &c5-addinguser; |
9 | &c5-settingenviron; | |
[bc82645e] | 10 | &c5-binutils-pass1; |
11 | &c5-gcc-pass1; | |
12 | &c5-kernelheaders; | |
[37ad07a] | 13 | &c5-glibc; |
[bc82645e] | 14 | &c5-lockingglibc; |
[37ad07a] | 15 | &c5-tcl; |
16 | &c5-expect; | |
17 | &c5-dejagnu; | |
[bc82645e] | 18 | &c5-gcc-pass2; |
19 | &c5-binutils-pass2; | |
20 | &c5-gawk; | |
21 | &c5-coreutils; | |
[abbd27a5] | 22 | &c5-bzip2; |
[bc82645e] | 23 | &c5-gzip; |
[abbd27a5] | 24 | &c5-diffutils; |
[5e2cb65] | 25 | &c5-findutils; |
[abbd27a5] | 26 | &c5-make; |
[bc82645e] | 27 | &c5-grep; |
[abbd27a5] | 28 | &c5-sed; |
[bc82645e] | 29 | &c5-gettext; |
30 | &c5-ncurses; | |
31 | &c5-patch; | |
[abbd27a5] | 32 | &c5-tar; |
33 | &c5-texinfo; | |
[bc82645e] | 34 | &c5-bash; |
[5e2cb65] | 35 | &c5-utillinux; |
[bc82645e] | 36 | &c5-perl; |
[6370fa6] | 37 | |
[503e1a6] | 38 | |
[69a52c1] | 39 | <sect1 id="ch05-stripping"> |
40 | <title>Stripping</title> | |
41 | <?dbhtml filename="stripping.html" dir="chapter05"?> | |
42 | ||
[1cb7ced] | 43 | <para>The steps in this section are optional. If your LFS partition is rather |
44 | small, you will be glad to learn that you can throw away some unnecessary | |
45 | things. The executables and libraries you have built so far contain about 130 MB | |
46 | of unneeded debugging symbols. Remove those symbols like this:</para> | |
[69a52c1] | 47 | |
[21ba4e3] | 48 | <screen><userinput>strip --strip-unneeded /tools/{,s}bin/* |
49 | strip --strip-debug /tools/lib/*</userinput></screen> | |
[69a52c1] | 50 | |
51 | <para>The first of the above commands will skip some twenty files, reporting | |
52 | that it doesn't recognize their file format. Most of them are scripts instead | |
53 | of binaries.</para> | |
54 | ||
55 | <para>Take care <emphasis>not</emphasis> to use | |
56 | <userinput>--strip-unneeded</userinput> on the libraries -- they would be | |
57 | destroyed and you would have to build Glibc all over again.</para> | |
58 | ||
[238527e] | 59 | <para>To save another couple of megabytes, you can throw away all the |
60 | documentation:</para> | |
[69a52c1] | 61 | |
[21ba4e3] | 62 | <screen><userinput>rm -rf /tools/{,share/}{doc,info,man}</userinput></screen> |
[69a52c1] | 63 | |
[1668d8e] | 64 | <para>You will now need to have at least 800 MB of free space on your LFS |
65 | filesystem to be able to build and install Glibc in the next phase. If you can | |
66 | build and install Glibc, you can build and install the rest too.</para> | |
[69a52c1] | 67 | |
68 | </sect1> | |
69 | ||
[6370fa6] | 70 | </chapter> |
71 |
Note:
See TracBrowser
for help on using the repository browser.