binutils-inst.xml 735 B

1234567891011121314151617181920
  1. <sect2>
  2. <title>Installation of Binutils</title>
  3. <para>This package is known to behave badly when you have changed its default
  4. optimization flags (including the -march and -mcpu options). Binutils is
  5. best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other
  6. such variables/settings that would change the default optimization that
  7. it comes with.</para>
  8. <para>Install Binutils by running the following commands:</para>
  9. <para><screen><userinput>mkdir ../binutils-build &amp;&amp;
  10. cd ../binutils-build &amp;&amp;
  11. ../binutils-&binutils-version;/configure --prefix=$LFS/usr --disable-nls &amp;&amp;
  12. make LDFLAGS=-all-static tooldir=$LFS/usr &amp;&amp;
  13. make tooldir=$LFS/usr install</userinput></screen></para>
  14. </sect2>