[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
|
---|
[838d135] | 9 | directory when chroot'ed or reboot'ed into LFS.</para>
|
---|
[6370fa6] | 10 |
|
---|
[b822811] | 11 | <para><userinput>--bindir=$LFS/bin:</userinput> This installs the executable
|
---|
[6370fa6] | 12 | files in $LFS/bin. We do this because we want bash to be in /bin, not in
|
---|
[2f86e05] | 13 | /usr/bin. One reason being: the /usr partition might be on a separate
|
---|
[6370fa6] | 14 | partition which has to be mounted at some point. Before that partition is
|
---|
[2f5db45b] | 15 | mounted you need and will want to have bash available (it will be hard to
|
---|
[b822811] | 16 | execute the boot scripts without a shell for instance).</para>
|
---|
[6370fa6] | 17 |
|
---|
[5cce404] | 18 | <para><userinput>--with-curses:</userinput> This causes Bash to be
|
---|
| 19 | linked against the curses library instead of the default termcap
|
---|
| 20 | library which is becoming obsolete.</para>
|
---|
| 21 |
|
---|
| 22 | <para>It is not strictly necessary for the static bash to be linked
|
---|
[f3e227c] | 23 | against libncurses (it can link against a static termcap for the time
|
---|
[5cce404] | 24 | being just fine because we will reinstall Bash in chapter 6 anyways,
|
---|
| 25 | where we will use libncurses), but it's a good test to make sure that
|
---|
| 26 | the ncurses package has been installed properly. If not, you will get in
|
---|
| 27 | trouble later on in this chapter when you install the Texinfo package.
|
---|
| 28 | That package requires ncurses and termcap can't reliably be used
|
---|
| 29 | there.</para>
|
---|
| 30 |
|
---|
[45714a7] | 31 | <para><userinput>ln -sf bash sh:</userinput> This command creates the sh
|
---|
[0154b8b6] | 32 | symlink that points to bash. Most scripts run themselves via 'sh'
|
---|
| 33 | (invoked by the #!/bin/sh as the first line in the scripts) which
|
---|
| 34 | invokes a special bash mode. Bash will then behave (as closely as
|
---|
[b822811] | 35 | possible) as the original Bourne shell.</para>
|
---|
[6370fa6] | 36 |
|
---|
[b822811] | 37 | <para>The <userinput>&&</userinput>'s at the end of every line cause
|
---|
[55ffe68] | 38 | the next command to be executed only if the previous command exists
|
---|
[72033583] | 39 | with a return value of 0 indicating success. In case all of these
|
---|
| 40 | commands are copy&pasted
|
---|
[55ffe68] | 41 | on the shell, is is important to be ensured that if
|
---|
| 42 | ./configure fails, make isn't being executed and, likewise, if make fails,
|
---|
[b822811] | 43 | that make install isn't being executed, and so forth.</para>
|
---|
[6370fa6] | 44 |
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|