| 123456789101112131415161718192021 | <sect2><title>Installation of Binutils</title><para>This package is known to behave badly when you have changed its defaultoptimization flags (including the -march and -mcpu options). Binutils isbest left alone.  Therefore, if you have defined any environment variablesthat override default optimizations, such as CFLAGS and CXXFLAGS, werecommend unsetting or modifying them when building binutils.  You have beenwarned.</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/static --disable-nls &&make tooldir=$LFS/static LDFLAGS=-all-static &&make tooldir=$LFS/static install</userinput></screen></para></sect2>
 |