aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/make.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/make.xml')
-rw-r--r--chapter06/make.xml76
1 files changed, 30 insertions, 46 deletions
diff --git a/chapter06/make.xml b/chapter06/make.xml
index 9c649cdc5..fef5555aa 100644
--- a/chapter06/make.xml
+++ b/chapter06/make.xml
@@ -4,8 +4,7 @@
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
-
-<sect1 id="ch-system-make" role="wrap">
+<sect1 id="ch-tools-make" role="wrap">
<?dbhtml filename="make.html"?>
<sect1info condition="script">
@@ -16,22 +15,25 @@
<title>Make-&make-version;</title>
- <indexterm zone="ch-system-make">
+ <indexterm zone="ch-tools-make">
<primary sortas="a-Make">Make</primary>
+ <secondary>tools</secondary>
</indexterm>
<sect2 role="package">
<title/>
- <para>The Make package contains a program for compiling packages.</para>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+ href="../chapter08/make.xml"
+ xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
- <seg>&make-ch6-sbu;</seg>
- <seg>&make-ch6-du;</seg>
+ <seg>&make-ch5-sbu;</seg>
+ <seg>&make-ch5-du;</seg>
</seglistitem>
</segmentedlist>
@@ -39,60 +41,42 @@
<sect2 role="installation">
<title>Installation of Make</title>
-<!--
- <para>Again, work around an error caused by glibc-2.27 and later:</para>
-<screen><userinput remap="pre">sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c</userinput></screen>
--->
<para>Prepare Make for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr \
+ --without-guile \
+ --host=$LFS_TGT \
+ --build=$(build-aux/config.guess)</userinput></screen>
- <para>Compile the package:</para>
+ <variablelist>
+ <title>The meaning of the new configure option:</title>
-<screen><userinput remap="make">make</userinput></screen>
+ <varlistentry>
+ <term><parameter>--without-guile</parameter></term>
+ <listitem>
+ <para>Although we are cross-compiling, configure tries to use
+ guile from the build host if it finds it. This makes compilation
+ fail, so this switch prevents using it.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
- <para>The test suite needs to know where supporting perl files are located.
- We use an environment variable to accomplish this. To test the
- results, issue:</para>
+ <para>Compile the package:</para>
-<screen><userinput remap="test">make check</userinput></screen>
+<screen><userinput remap="make">make</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>
+ <sect2 role="content">
+ <title/>
- <sect2 id="contents-make" role="content">
- <title>Contents of Make</title>
-
- <segmentedlist>
- <segtitle>Installed program</segtitle>
-
- <seglistitem>
- <seg>make</seg>
- </seglistitem>
- </segmentedlist>
-
- <variablelist>
- <bridgehead renderas="sect3">Short Descriptions</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
-
- <varlistentry id="make">
- <term><command>make</command></term>
- <listitem>
- <para>Automatically determines which pieces of a package need to
- be (re)compiled and then issues the relevant commands</para>
- <indexterm zone="ch-system-make make">
- <primary sortas="b-make">make</primary>
- </indexterm>
- </listitem>
- </varlistentry>
-
- </variablelist>
+ <para>Details on this package are located in
+ <xref linkend="contents-make" role="."/></para>
</sect2>