mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 05:57:43 +00:00
d6bc819962
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1509 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
21 lines
735 B
XML
21 lines
735 B
XML
<sect2>
|
|
<title>Installation of Binutils</title>
|
|
|
|
<para>This package is known to behave badly when you have changed its 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>mkdir ../binutils-build &&
|
|
cd ../binutils-build &&
|
|
../binutils-&binutils-version;/configure --prefix=$LFS/usr --disable-nls &&
|
|
make LDFLAGS=-all-static tooldir=$LFS/usr &&
|
|
make tooldir=$LFS/usr install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|