[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Command explanations</title>
|
---|
| 3 |
|
---|
[bccc288] | 4 | <para><userinput>sed 's%\$(PERL)%/usr/bin/perl%'
|
---|
[8c5e7152] | 5 | malloc/Makefile.backup > malloc/Makefile:</userinput> This sed command
|
---|
| 6 | searches through <filename>malloc/Makefile.backup</filename> and
|
---|
[51c0c603] | 7 | converts all occurrences of <filename>$(PERL)</filename> to
|
---|
[8c5e7152] | 8 | <filename>/usr/bin/perl</filename>. The output is then written to the
|
---|
| 9 | original <filename>malloc/Makefile.in</filename> which is used during
|
---|
| 10 | configuration. This is done because Glibc can't autodetect perl since
|
---|
| 11 | it hasn't been installed yet.</para>
|
---|
| 12 |
|
---|
| 13 | <para><userinput>sed 's/root/0' login/Makefile.backup >
|
---|
[8f9069b3] | 14 | login/Makefile:</userinput> This sed command replaces all occurrences of
|
---|
[8c5e7152] | 15 | <filename>root</filename> in <filename>login/Makefile.backup</filename>
|
---|
| 16 | with 0. This is because we don't have glibc on the LFS system yet, so
|
---|
| 17 | usernames can't be resolved to their user id's. Therefore, we replace
|
---|
| 18 | the username root with user id 0.</para>
|
---|
[671561b] | 19 |
|
---|
[b822811] | 20 | <para><userinput>--enable-add-ons:</userinput> This enables the add-on that
|
---|
| 21 | we install with Glibc: linuxthreads</para>
|
---|
[6370fa6] | 22 |
|
---|
[166f15a] | 23 | <para><userinput>--libexecdir=/usr/bin:</userinput> This will cause the
|
---|
| 24 | pt_chown program to be installed in the /usr/bin directory.</para>
|
---|
| 25 |
|
---|
[94cb4444] | 26 | <para><userinput>echo "cross-compiling = no" > configparms:</userinput>
|
---|
| 27 | We do this because we are only building for our own system. Cross-compiling
|
---|
| 28 | is used, for instance, to build a package for an Apple Power PC on an
|
---|
| 29 | Intel system. The reason Glibc thinks we're cross-compiling is that it
|
---|
| 30 | can't compile a test program to determine this, so it automatically defaults
|
---|
[8f9069b3] | 31 | to a cross-compiler. Compiling the test program fails because Glibc hasn't
|
---|
[94cb4444] | 32 | been installed yet.</para>
|
---|
[671561b] | 33 |
|
---|
[76a3d6d] | 34 | <para><userinput>exec /bin/bash:</userinput>This command will
|
---|
| 35 | start a new bash shell which will replace the current shell. This is
|
---|
| 36 | done to get rid of the "I have no name!" message in the command
|
---|
| 37 | prompt, which was caused by bash's inability to resolve a userid to
|
---|
| 38 | a username (which in turn was caused by the missing Glibc
|
---|
| 39 | installation).</para>
|
---|
| 40 |
|
---|
[6370fa6] | 41 | </sect2>
|
---|
| 42 |
|
---|