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