2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>--enable-static-link:</userinput> This configure
|
|
|
|
option causes Bash to be linked statically</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>--prefix=$LFS/usr:</userinput> This configure option installs
|
2001-01-24 00:31:17 +00:00
|
|
|
all of Bash's files under the $LFS/usr directory, which becomes the /usr
|
2001-04-09 15:42:35 +01:00
|
|
|
directory after the user chroot'ed into $LFS or when he rebooted
|
2001-07-22 20:45:10 +01:00
|
|
|
the system into LFS.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><userinput>--bindir=$LFS/bin:</userinput> This installs the executable
|
2001-01-24 00:31:17 +00:00
|
|
|
files in $LFS/bin. We do this because we want bash to be in /bin, not in
|
2001-04-09 15:42:35 +01:00
|
|
|
/usr/bin. One reason being: the /usr partition might be on a separate
|
2001-01-24 00:31:17 +00:00
|
|
|
partition which has to be mounted at some point. Before that partition is
|
2001-08-29 18:49:48 +01:00
|
|
|
mounted you need and will want to have bash available (it will be hard to
|
2001-07-22 20:45:10 +01:00
|
|
|
execute the boot scripts without a shell for instance).</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-05 18:47:33 +01:00
|
|
|
<para><userinput>--with-curses:</userinput> This causes Bash to be
|
|
|
|
linked against the curses library instead of the default termcap
|
|
|
|
library which is becoming obsolete.</para>
|
|
|
|
|
|
|
|
<para>It is not strictly necessary for the static bash to be linked
|
|
|
|
against libncurses (it can link against a static termap for the time
|
|
|
|
being just fine because we will reinstall Bash in chapter 6 anyways,
|
|
|
|
where we will use libncurses), but it's a good test to make sure that
|
|
|
|
the ncurses package has been installed properly. If not, you will get in
|
|
|
|
trouble later on in this chapter when you install the Texinfo package.
|
|
|
|
That package requires ncurses and termcap can't reliably be used
|
|
|
|
there.</para>
|
|
|
|
|
2001-08-23 23:38:49 +01:00
|
|
|
<para><userinput>ln -sf bash sh:</userinput> This command creates the sh
|
2001-01-31 20:58:41 +00:00
|
|
|
symlink that points to bash. Most scripts run themselves via 'sh'
|
|
|
|
(invoked by the #!/bin/sh as the first line in the scripts) which
|
|
|
|
invokes a special bash mode. Bash will then behave (as closely as
|
2001-07-22 20:45:10 +01:00
|
|
|
possible) as the original Bourne shell.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The <userinput>&&</userinput>'s at the end of every line cause
|
2001-03-25 09:17:59 +01:00
|
|
|
the next command to be executed only if the previous command exists
|
2001-03-18 19:30:50 +00:00
|
|
|
with a return value of 0 indicating success. In case all of these
|
|
|
|
commands are copy&pasted
|
2001-03-25 09:17:59 +01:00
|
|
|
on the shell, is is important to be ensured that if
|
|
|
|
./configure fails, make isn't being executed and, likewise, if make fails,
|
2001-07-22 20:45:10 +01:00
|
|
|
that make install isn't being executed, and so forth.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|