diffutils-inst.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Diffutils</title>
  4. <para>Prepare Diffutils to be compiled:</para>
  5. <para><screen><userinput>LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  6. &nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=$LFS/static --disable-nls</userinput></screen></para>
  7. <para>The meaning of the configure options are:</para>
  8. <itemizedlist>
  9. <listitem><para><userinput>LDFLAGS="-static"</userinput>: This is the most
  10. common way to tell a package that all programs should be statically linked.
  11. This way the <emphasis>LDFLAGS</emphasis> environment variable is set, but
  12. only in the subshell that the <filename>configure</filename> script runs
  13. in. When <userinput>configure</userinput> has done its job, the
  14. <emphasis>LDFLAGS</emphasis> environment variable won't exist anymore
  15. and the <filename>Makefile</filename> files contain will contain this
  16. variable locally.</para></listitem>
  17. <listitem><para><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2</userinput>: The <emphasis>CPPFLAGS</emphasis> variable is a variable that's read by
  18. the cpp program (C PreProcessor). The value of this variable tells the
  19. preprocessor to replace every instance of <emphasis>re_max_failures</emphasis>
  20. it finds with <emphasis>re_max_failures2</emphasis> before handing the source
  21. file to the compiler itself for compilation. This package has problems
  22. linking statically on systems that run an older Glibc version and this
  23. construction fixes that problem.</para></listitem>
  24. </itemizedlist>
  25. <para>Continue with compiling the package:</para>
  26. <para><screen><userinput>make</userinput></screen></para>
  27. <para>And finish off installing the package:</para>
  28. <para><screen><userinput>make install</userinput></screen></para>
  29. </sect2>