Details on this package are located in Section 8.14.2, “Contents of Binutils.”
The Binutils package contains a linker, an assembler, and other tools for handling object files.
Create a separate build directory again:
mkdir -v build cd build
Prepare Binutils for compilation:
../configure \ --prefix=/usr \ --build=$(../config.guess) \ --host=$LFS_TGT \ --disable-nls \ --enable-shared \ --disable-werror
The meaning of the new configure options:
--host=$LFS_TGT
This tells the configure script that we want to build this pass of binutils for the $LFS_TGT machine, using our just built cross-compiler. This prevents the linker from searching through library directories on the host.
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Details on this package are located in Section 8.14.2, “Contents of Binutils.”