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