aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/chapter05.xml7
-rw-r--r--chapter05/setting-environment.xml4
2 files changed, 5 insertions, 6 deletions
diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml
index 722ea9e25..1ce12a4a4 100644
--- a/chapter05/chapter05.xml
+++ b/chapter05/chapter05.xml
@@ -56,11 +56,10 @@ of binaries.</para>
<userinput>--strip-unneeded</userinput> on the libraries -- they would be
destroyed and you would have to build Glibc all over again.</para>
-<para>To save another couple of megabytes, you can throw away the documentation
-and some of the bigger unneeded programs:</para>
+<para>To save another couple of megabytes, you can throw away all the
+documentation:</para>
-<para><screen><userinput>rm -rf /tools/{,share/}{doc,info,man}
-rm /tools/bin/{addr2line,gprof,nm,size,strings,strip}</userinput></screen></para>
+<para><screen><userinput>rm -rf /tools/{,share/}{doc,info,man}</userinput></screen></para>
<para>You will now need to have at least 700 MB of free space on your LFS
filesystem to be able to build and install Glibc in the next phase.</para>
diff --git a/chapter05/setting-environment.xml b/chapter05/setting-environment.xml
index a43e8d492..286cd2428 100644
--- a/chapter05/setting-environment.xml
+++ b/chapter05/setting-environment.xml
@@ -5,14 +5,14 @@
<para>While logged in as user <emphasis>lfs</emphasis>, issue the
following commands to set up a good work environment:</para>
-<para><screen><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"
+<para><screen><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"</userinput>
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:$PATH
export LFS LC_ALL PATH
-EOF
+<userinput>EOF
source ~/.bash_profile</userinput></screen></para>