blob: a64e6b687f705b9bb445c0d017058f0d680c6f36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<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>
|