3.16. Binutils-2.46.0 Pass 2

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

Package Information

Binutils-pass2 Dependencies

Required

Xz-5.8.3, GCC-15.2.0-pass1, Binutils-2.46.0-pass1, Glibc-2.43, and Linux-7.0.3-headers

3.16.1. Installation of Binutils-pass2

Prepare Binutils-pass2 for compilation:

Now Configure the Package, issue:

sed '6031s/$add_dir//' -i ltmain.sh;
mkdir -v build
cd build
../configure --prefix=/usr \
             --host=$LFS_TGT \
             --build=$(../config.guess) \
             --disable-werror \
             --disable-nls \
             --enable-shared \
             --enable-gprofng=no \
             --enable-64-bit-bfd \
             --enable-new-dtags \
             --enable-default-hash-style=gnu

To Compile the Package, issue:

make

Now Install the Package, issue:

make DESTDIR=$LFS install

rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la}

3.16.2. Contents of Binutils-pass2

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES