aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/diffutils-inst.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-01-11 17:06:14 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-01-11 17:06:14 +0000
commit2b138d6d321065ea4a3af0fa863b4688d02d7e5e (patch)
tree061bbd64c5c04377ebc32cc8bcb5ea1686c844b8 /chapter05/diffutils-inst.xml
parent873ec177165d1a9d97a917d532902b55567a18e5 (diff)
Rewrote diffutils + fileutils installation pages, added previously not 'cvs add'ed files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2310 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/diffutils-inst.xml')
-rw-r--r--chapter05/diffutils-inst.xml32
1 files changed, 29 insertions, 3 deletions
diff --git a/chapter05/diffutils-inst.xml b/chapter05/diffutils-inst.xml
index cb387de49..e197fa674 100644
--- a/chapter05/diffutils-inst.xml
+++ b/chapter05/diffutils-inst.xml
@@ -1,11 +1,37 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
<sect2>
<title>Installation of Diffutils</title>
-<para>Install Diffutils by running the following commands:</para>
+<para>Prepare Diffutils to be compiled:</para>
<para><screen><userinput>LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \
-&nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=$LFS/static --disable-nls &amp;&amp;
-make &amp;&amp;
+&nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=$LFS/static --disable-nls</userinput></screen></para>
+
+<para>The meaning of the configure options are:</para>
+
+<itemizedlist>
+<listitem><para><userinput>LDFLAGS="-static":</userinput> This is the most
+common way to tell a package that all programs should be statically linked.
+This way the <emphasis>LDFLAGS</emphasis> environment variable is set but
+only in the subshell that the <filename>configure</filename> script runs
+in. When <userinput>configure</userinput> is done its job, the
+<emphasis>LDFLAGS</emphasis> variable won't exist
+anymore.</para></listitem>
+
+<listitem><para><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2:</userinput>
+The <emphasis>CPPFLAGS</emphasis> variable is a variable that's read by the
+cpp program (C PreProcessor). The value of this variable tells the
+preprocessor to replace every instance of <emphasis>re_max_failures</emphasis>
+it finds with <emphasis>re_max_failures2</emphasis> before handing the source
+file to the compiler itself for compilation. This package has problems
+linking statically on systems that run an older Glibc version and this
+construction fixes that problem.</para></listitem>
+</itemizedlist>
+
+<para>Finish off by compiling and installing the package:</para>
+
+<para><screen><userinput>make
make install</userinput></screen></para>
</sect2>