lfs/chapter05/binutils-pass2-inst.xml

24 lines
694 B
XML

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Binutils</title>
<para><screen><userinput>patch -Np1 -i ../binutils-&binutils-version;-lib-path.patch
mkdir ../binutils-build
cd ../binutils-build
CFLAGS="-O2 -pipe" ../binutils-&binutils-version;/configure --prefix=/stage1 \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --with-lib-path=/stage1/lib
make LDFLAGS="-s"
make check
make install</userinput></screen></para>
<para><screen><userinput>cd ld
make clean
make LIB_PATH=/usr/lib:/lib</userinput></screen></para>
<para>Do not remove the binutils-* directories after the installation.
We'll need this directory again in chapter 6 as-is.</para>
</sect2>