| 1234567891011121314151617181920212223242526272829303132333435363738 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of Diffutils</title><para>Prepare Diffutils to be compiled:</para><para><screen><userinput>LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \    ./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 mostcommon way to tell a package that all programs should be statically linked.This way the <emphasis>LDFLAGS</emphasis> environment variable is set butonly in the subshell that the <filename>configure</filename> script runsin. When <userinput>configure</userinput> is done its job, the<emphasis>LDFLAGS</emphasis> variable won't existanymore.</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 thecpp program (C PreProcessor). The value of this variable tells thepreprocessor to replace every instance of <emphasis>re_max_failures</emphasis>it finds with <emphasis>re_max_failures2</emphasis> before handing the sourcefile to the compiler itself for compilation. This package has problemslinking statically on systems that run an older Glibc version and thisconstruction fixes that problem.</para></listitem></itemizedlist><para>Finish off by compiling and installing the package:</para><para><screen><userinput>makemake install</userinput></screen></para></sect2>
 |