Re-installation of Binutils
First create a separate build directory again:
mkdir ../binutils-build
cd ../binutils-build
Now prepare Binutils to be compiled:
../binutils-&binutils-version;/configure --prefix=/stage1 \
--enable-shared --with-lib-path=/stage1/lib
Before starting to build Binutils, remember to unset any environment
variables that override the default optimization flags.
Compile the package:
make
Test the results (nothing should fail here):
make check
And install the package:
make install
Now already prepare Binutils for the "Locking in" procedure in the next
chapter:
make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib
Do not yet remove the Binutils source and build
directories. We'll need these directories again in the next chapter in the
state they are in now.