2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Binutils</title>
|
|
|
|
|
2001-09-20 02:47:28 +01:00
|
|
|
<para>This package is known to behave badly when you have changed its default
|
2002-04-19 19:27:01 +01:00
|
|
|
optimization flags (including the -march and -mcpu options). Binutils is
|
|
|
|
best left alone. Therefore, if you have defined any environment variables
|
|
|
|
that override default optimizations, such as CFLAGS and CXXFLAGS, we
|
|
|
|
recommend unsetting or modifying them when building binutils. You have been
|
|
|
|
warned.</para>
|
2001-09-05 15:13:36 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Binutils by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-01-30 16:11:56 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>mkdir ../binutils-build &&
|
|
|
|
cd ../binutils-build &&
|
2002-05-25 01:19:47 +01:00
|
|
|
../binutils-&binutils-version;/configure --prefix=$LFS/static --disable-nls &&
|
|
|
|
make tooldir=$LFS/static LDFLAGS=-all-static &&
|
|
|
|
make tooldir=$LFS/static install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|