aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2002-09-02 00:01:22 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2002-09-02 00:01:22 +0000
commit54eee9df478c297f508b69fcb3ebfa456d73e0ab (patch)
tree482bd5f49106773a585faba7ddbf19be431525b0 /chapter05
parentd0e55a67df31dab8bbf39e47da7aae6de91c062e (diff)
Fix man bug, added a CC variable to omit symbols from compilation in static packages.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2077 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-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>