aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gawk.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/gawk.xml')
-rw-r--r--chapter05/gawk.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/chapter05/gawk.xml b/chapter05/gawk.xml
index adcd2ea15..d5b5d6d8d 100644
--- a/chapter05/gawk.xml
+++ b/chapter05/gawk.xml
@@ -43,23 +43,23 @@
<sect2 role="installation">
<title>Installation of Gawk</title>
+ <para>First, ensure some unneeded files are not installed:</para>
+
+<screen><userinput remap="pre">sed -i 's/extras//' Makefile.in</userinput></screen>
+
<para>Prepare Gawk for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr \
+ --host=$LFS_TGT \
+ --build=$(./config.guess)</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
- <para>Compilation is now complete. As discussed earlier, running the test
- suite is not mandatory for the temporary tools here in this chapter. To run
- the Gawk test suite anyway, issue the following command:</para>
-
-<screen><userinput remap="test">make check</userinput></screen>
-
<para>Install the package:</para>
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
</sect2>