aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/installasuser.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/installasuser.xml')
-rw-r--r--chapter05/installasuser.xml14
1 files changed, 10 insertions, 4 deletions
diff --git a/chapter05/installasuser.xml b/chapter05/installasuser.xml
index a914e6a50..2001ca18d 100644
--- a/chapter05/installasuser.xml
+++ b/chapter05/installasuser.xml
@@ -32,15 +32,16 @@ umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
-export LFS LC_ALL
+CC='gcc -s'
+export LFS LC_ALL CC
EOF
source ~/.bash_profile</userinput></screen></para>
<para>This profile makes sure the umask is set to 022 so newly created
files and directories will have the correct permissions. It is advisable
-to keep this setting throughout your LFS installation. Also, the $LFS
-and $LC_ALL environment variables are set. $LFS has been explained in
-previous chapters already. $LC_ALL is a variable that is used for
+to keep this setting throughout your LFS installation. Also, the $LFS,
+$LC_ALL, and $CC environment variables are set. $LFS has been explained
+in previous chapters already. $LC_ALL is a variable that is used for
internationalization.</para>
<para>When your host distribution uses a glibc version older than 2.2.4,
@@ -50,5 +51,10 @@ of chapter 6 and try to return to it. By setting this to "POSIX" ("C"
is an alias for "POSIX") we ensure that everything will work as expected
in the chroot environment.</para>
+<para>$CC is a variable we set in order to prevent debugging symbols from
+being compiled into our static packages. By omitting these symbols during
+the linking stage of compilation, we save hard drive space and decrease
+our the build time.</para>
+
</sect1>