Details on this package are located in Section 10.9.2, “Contents of Binutils.”
The Binutils package contains a linker, an assembler, and other tools for handling object files.
To make sure that the proper syntax is used for a couple of tools, apply the following patch:
patch -Np1 -i ../binutils-2.17-posix-1.patch
The following patch makes Binutils search in both the lib and lib64 directories in a multilib environment:
patch -Np1 -i ../binutils-2.17-genscripts_multilib-1.patch
The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:
mkdir -v ../binutils-build cd ../binutils-build
Prepare Binutils for compilation:
CC="${CC} ${BUILD64}" \ ../binutils-2.17/configure --prefix=/tools \ --libdir=/tools/lib64 --with-lib-path=/tools/lib \ --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \ --disable-nls --enable-shared --enable-64-bit-bfd
The meaning of the new configure options:
Tells the compiler to use our 64-bit build flags.
Compile the package:
make configure-host make
Install the package:
make install
Details on this package are located in Section 10.9.2, “Contents of Binutils.”