6.17. Binutils-2.34 - Pass 2

The Binutils package contains a linker, an assembler, and other tools for handling object files.

Approximate build time: 1.2 SBU
Required disk space: 492 MB

6.17.1. Installation of Binutils

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.”