diff options
Diffstat (limited to 'chapter05/diffutils-inst.xml')
-rw-r--r-- | chapter05/diffutils-inst.xml | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/chapter05/diffutils-inst.xml b/chapter05/diffutils-inst.xml index c67b41d1a..e5c64b641 100644 --- a/chapter05/diffutils-inst.xml +++ b/chapter05/diffutils-inst.xml @@ -5,37 +5,10 @@ <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 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> has done its job, the -<emphasis>LDFLAGS</emphasis> environment variable won't exist anymore -and the <filename>Makefile</filename> files contain will contain this -variable locally.</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>Continue with compiling the package:</para> - -<para><screen><userinput>make</userinput></screen></para> - -<para>And finish off installing the package:</para> - -<para><screen><userinput>make install</userinput></screen></para> +<para><screen><userinput>CFLAGS="-O2 -pipe" ./configure --prefix=/stage1 +make LDFLAGS="-s" +make check +make install</userinput></screen></para> </sect2> |