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
|
---|
12 | directory after the user chrooted into $LFS or when he rebooted
|
---|
13 | the system into LFS.
|
---|
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
|
---|
19 | /usr/bin. One reason being: the /usr partition might be on a seperate
|
---|
20 | partition which has to be mounted at some point. Before that partition is
|
---|
21 | mounted a user needs and will want to have bash available (it will be hard to
|
---|
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
|
---|
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.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | <para>
|
---|
40 | The <userinput>&&</userinput>'s at the end of every line cause
|
---|
41 | the next command to be executed only if the previous command exists
|
---|
42 | with a return value of 0 indicating success. In case all of these
|
---|
43 | commands are copy&pasted
|
---|
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,
|
---|
46 | that make install isn't being executed, and so forth.
|
---|
47 | </para>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|