diffutils-inst.xml 1004 B

123456789101112131415161718192021222324
  1. <sect2>
  2. <title>Installation of Diffutils</title>
  3. <para>When installing Diffutils using glibc-2.1.x on your base system, it may
  4. be necessary to use a fix to prevent a variable name conflict. The
  5. following commands can be used in this case. Note that these commands
  6. can also be used for other glibc versions so if you aren't sure, then
  7. use the first version.</para>
  8. <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;</userinput>
  9. <userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
  10. <userinput>unset CPPFLAGS &amp;&amp;</userinput>
  11. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  12. <userinput>make install</userinput></screen></para>
  13. <para>If you are using a newer glibc version (2.2.x), you can use the following
  14. commands to install Diffutils:</para>
  15. <para><screen><userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
  16. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  17. <userinput>make install</userinput></screen></para>
  18. </sect2>