lfs/chapter05/binutils-inst.xml

18 lines
685 B
XML
Raw Normal View History

<sect2>
<title>Installation of Binutils</title>
<para>This package is known to behave badly when you have changed it's default
optimization flags (including the -march and -mcpu options). Binutils is
best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other
such variables/settings that would change the default optimization that
it comes with.</para>
<para>Install Binutils by running the following commands:</para>
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
<userinput>make LDFLAGS=-all-static tooldir=$LFS/usr &amp;&amp;</userinput>
<userinput>make tooldir=$LFS/usr install</userinput></screen></para>
</sect2>