Fixed some typo's

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1567 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Marc Heerdink 2002-02-11 12:12:38 +00:00
parent 901193ca62
commit fe578632b8
2 changed files with 18 additions and 19 deletions

View File

@ -9,7 +9,7 @@ to happen, for example because the $LFS environment variable is not
set. Overwriting some files from your host system will most likely set. Overwriting some files from your host system will most likely
cause all kinds of problems, so it's a good idea to be logged in as cause all kinds of problems, so it's a good idea to be logged in as
an unprivileged user during chapter 5. To make sure the environment an unprivileged user during chapter 5. To make sure the environment
is as clean as possible, we'll create a new user lfs that can be is as clean as possible, we'll create a new user "lfs" that can be
used while building the static installation. Issuing the following used while building the static installation. Issuing the following
commands as root will create a new user "lfs":</para> commands as root will create a new user "lfs":</para>
@ -45,10 +45,10 @@ internationalization.</para>
<para>When your host distribution uses a glibc version older than 2.2.4, <para>When your host distribution uses a glibc version older than 2.2.4,
having $LC_ALL set to something else than "C" or "POSIX" while working having $LC_ALL set to something else than "C" or "POSIX" while working
through chapter 5 may cause trouble when you've exited the chrooted through chapter 5 may cause trouble when you exit the chroot environment
environment of chapter 6 and try to return to it. By setting this to of chapter 6 and try to return to it. By setting this to "POSIX" ("C"
"POSIX" ("C" is an alias for "POSIX") we ensure that everything will is an alias for "POSIX") we ensure that everything will work as expected
work as expected in the chrooted environment.</para> in the chroot environment.</para>
</sect1> </sect1>

View File

@ -8,22 +8,21 @@ based to one of the LFS mailing lists.</para>
<para>When making (compiling) a program, rather than having to rewrite all the <para>When making (compiling) a program, rather than having to rewrite all the
functions for dealing with the kernel, hardware, files, etc. every time you functions for dealing with the kernel, hardware, files, etc. every time you
write a new program, all these basic functions are instead kept in libraries. write a new program, all these basic functions are instead kept in libraries.
glibc, which you install later, is one of these major libraries, which contain glibc, which you install later, is one of these major libraries, which
code for all the basic functions programs use, like opening files, printing contains code for all the basic functions programs use, like opening files,
information on the screen, and getting feedback from the user. When the printing information on the screen, and getting feedback from the user. When
program is compiled, these libraries of code are linked together with the new the program is compiled, these libraries of code are linked together with the
program, so that it can use any of the functions that the library new program, so that it can use any of the functions that the library
has.</para> has.</para>
<para>However, these libraries can be very large (for example, libc.a <para>However, these libraries can be very large (for example, libc.a from
from can often be around 2.5MB), so you may not want a separate copy of can often be around 2.5MB), so you may not want a separate copy of each
each library attached to the library attached to the program. Just imagine if you had a simple command
program. Just imagine if you had a simple command like ls with an extra 2.5MB like ls with an extra 2.5MB attached to it! Instead of making the library
attached to it! Instead of making the library an actual part of the an actual part of the program, or statically linked, the library is kept a
program, or Statically Linked, the library is kept a separate file, separate file, which is loaded only when the program needs it. This is what
which is loaded only when the program needs it. This is what we call Dynamically we call dynamically linked, as the library is loaded and unloaded dynamically,
Linked, as the library is loaded and unloaded dynamically, as the program needs as the program needs it.</para>
it.</para>
<para>So now we have a 1kb file and a 2.5MB file, but we still haven't saved any <para>So now we have a 1kb file and a 2.5MB file, but we still haven't saved any
space (except maybe RAM until the library is needed). The REAL advantage to space (except maybe RAM until the library is needed). The REAL advantage to