2003-01-11 17:06:14 +00:00
<sect2 > <title > </title> <para > </para> </sect2>
2001-01-24 00:31:17 +00:00
<sect2 >
<title > Installation of Diffutils</title>
2003-01-11 17:06:14 +00:00
<para > Prepare Diffutils to be compiled:</para>
2001-01-24 00:31:17 +00:00
2002-12-30 03:12:54 +00:00
<para > <screen > <userinput > LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \
2003-01-11 17:06:14 +00:00
./configure --prefix=$LFS/static --disable-nls</userinput> </screen> </para>
<para > The meaning of the configure options are:</para>
<itemizedlist >
2003-02-03 23:24:24 +00:00
<listitem > <para > <userinput > LDFLAGS="-static"</userinput> : This is the most
2003-01-11 17:06:14 +00:00
common way to tell a package that all programs should be statically linked.
2003-01-27 21:28:02 +00:00
This way the <emphasis > LDFLAGS</emphasis> environment variable is set, but
2003-01-11 17:06:14 +00:00
only in the subshell that the <filename > configure</filename> script runs
2003-01-16 01:08:41 +00:00
in. When <userinput > configure</userinput> has done its job, the
2003-01-27 21:28:02 +00:00
<emphasis > LDFLAGS</emphasis> environment variable won't exist anymore
and the <filename > Makefile</filename> files contain will contain this
variable locally.</para> </listitem>
2003-01-11 17:06:14 +00:00
2003-02-03 23:24:24 +00:00
<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
2003-01-11 17:06:14 +00:00
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>
2003-01-11 17:41:17 +00:00
<para > Continue with compiling the package:</para>
2003-01-11 17:06:14 +00:00
2003-01-11 17:41:17 +00:00
<para > <screen > <userinput > make</userinput> </screen> </para>
<para > And finish off installing the package:</para>
<para > <screen > <userinput > make install</userinput> </screen> </para>
2001-09-06 16:31:32 +01:00
2001-01-24 00:31:17 +00:00
</sect2>