[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Command explanations</title>
|
---|
| 3 |
|
---|
[b822811] | 4 | <para><userinput>--enable-static-link:</userinput> This configure
|
---|
| 5 | option causes Bash to be linked statically</para>
|
---|
[6370fa6] | 6 |
|
---|
[b822811] | 7 | <para><userinput>--prefix=$LFS/usr:</userinput> This configure option installs
|
---|
[6370fa6] | 8 | all of Bash's files under the $LFS/usr directory, which becomes the /usr
|
---|
[2f86e05] | 9 | directory after the user chroot'ed into $LFS or when he rebooted
|
---|
[b822811] | 10 | the system into LFS.</para>
|
---|
[6370fa6] | 11 |
|
---|
[b822811] | 12 | <para><userinput>--bindir=$LFS/bin:</userinput> This installs the executable
|
---|
[6370fa6] | 13 | files in $LFS/bin. We do this because we want bash to be in /bin, not in
|
---|
[2f86e05] | 14 | /usr/bin. One reason being: the /usr partition might be on a separate
|
---|
[6370fa6] | 15 | partition which has to be mounted at some point. Before that partition is
|
---|
[72033583] | 16 | mounted a user needs and will want to have bash available (it will be hard to
|
---|
[b822811] | 17 | execute the boot scripts without a shell for instance).</para>
|
---|
[6370fa6] | 18 |
|
---|
[b822811] | 19 | <para><userinput>--with-curses:</userinput> This causes Bash to be linked
|
---|
[6370fa6] | 20 | against the curses library instead of the default termcap library which
|
---|
[b822811] | 21 | is becoming obsolete.</para>
|
---|
[6370fa6] | 22 |
|
---|
[b822811] | 23 | <para><userinput>ln -s bash sh:</userinput> This command creates the sh
|
---|
[0154b8b6] | 24 | symlink that points to bash. Most scripts run themselves via 'sh'
|
---|
| 25 | (invoked by the #!/bin/sh as the first line in the scripts) which
|
---|
| 26 | invokes a special bash mode. Bash will then behave (as closely as
|
---|
[b822811] | 27 | possible) as the original Bourne shell.</para>
|
---|
[6370fa6] | 28 |
|
---|
[b822811] | 29 | <para>The <userinput>&&</userinput>'s at the end of every line cause
|
---|
[55ffe68] | 30 | the next command to be executed only if the previous command exists
|
---|
[72033583] | 31 | with a return value of 0 indicating success. In case all of these
|
---|
| 32 | commands are copy&pasted
|
---|
[55ffe68] | 33 | on the shell, is is important to be ensured that if
|
---|
| 34 | ./configure fails, make isn't being executed and, likewise, if make fails,
|
---|
[b822811] | 35 | that make install isn't being executed, and so forth.</para>
|
---|
[6370fa6] | 36 |
|
---|
| 37 | </sect2>
|
---|
| 38 |
|
---|