%general-entities; ]> Cross Binutils-&binutils-version; Binutils cross tools Installation of Cross Binutils It is important that Binutils be the first package compiled because both Glibc and GCC perform various tests on the available linker and assembler to determine which of their own features to enable. ../binutils-&binutils-version;/configure --prefix=${LFS}/cross-tools \ --host=${LFS_HOST} --target=${LFS_TARGET} --with-sysroot=${LFS} \ --disable-nls --enable-shared --disable-multilib The meaning of the configure options: --prefix=${LFS}/cross-tools This tells the configure script to prepare to install the package in the ${LFS}/cross-tools directory. --host=${LFS_HOST} When used with --target, this creates a cross-architecture executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST). --target=${LFS_TARGET} When used with --host, this creates a cross-architecture executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST). --with-sysroot=${LFS} This tells configure that ${LFS} is going to be the root of our system. It will now use the specified sysroot, ${LFS} as a prefix of the default search paths. --disable-nls This disables internationalization as i18n is not needed for the cross-compile tools. --enable-shared Enable the creation of the shared libraries. --disable-multilib This option disables the building of a multilib capable binutils. Compile the package: make configure-host make The meaning of the make options: configure-host This checks the host environment and makes sure all the necessary tools are available to compile binutils. Install the package: make install Copy the libiberty.h file to ${LFS}/usr/include directory: cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include <para>Details on this package are located in <xref linkend="contents-binutils" role="."/></para> </sect2> </sect1>