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 you chroot into $LFS or when you reboot the system into LFS.
|
---|
13 | </para>
|
---|
14 |
|
---|
15 | <para>
|
---|
16 | <userinput>--bindir=$LFS/bin:</userinput> This installs the executable
|
---|
17 | files in $LFS/bin. We do this because we want bash to be in /bin, not in
|
---|
18 | /usr/bin. One reason being: your /usr partition might be on a seperate
|
---|
19 | partition which has to be mounted at some point. Before that partition is
|
---|
20 | mounted you need and will want to have bash available (it will be hard to
|
---|
21 | execute the boot scripts without a shell for instance).
|
---|
22 | </para>
|
---|
23 |
|
---|
24 | <para>
|
---|
25 | <userinput>--disable-nls:</userinput> This disables the build of NLS
|
---|
26 | (National Language Support). It's only a waste of time for now as Bash
|
---|
27 | will be reinstalled in the next chapter.
|
---|
28 | </para>
|
---|
29 |
|
---|
30 | <para>
|
---|
31 | <userinput>--with-curses:</userinput> This causes Bash to be linked
|
---|
32 | against the curses library instead of the default termcap library which
|
---|
33 | is becoming obsolete.
|
---|
34 | </para>
|
---|
35 |
|
---|
36 | <para>
|
---|
37 | <userinput>ln -s bash sh:</userinput> This command creates the sh
|
---|
38 | symlink that points to bash. Most scripts run themselves via 'sh'
|
---|
39 | (invoked by the #!/bin/sh as the first line in the scripts) which
|
---|
40 | invokes a special bash mode. Bash will then behave (as closely as
|
---|
41 | possible) as the original Bourne shell.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | <para>
|
---|
45 | The <userinput>&&</userinput>'s at the end of every line cause
|
---|
46 | the next command only to be executed when the previous command exists
|
---|
47 | with a return value of 0 indicating success. In case you copy&paste
|
---|
48 | all of these commands on the shell you want to be ensured that if
|
---|
49 | ./configure fails, make isn't being executed and likewise if make fails
|
---|
50 | that make install isn't being executed, and so forth.
|
---|
51 | </para>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|