%general-entities; %patches-entities; ]> Cross Binutils-&binutils-version; Binutils cross tools <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/binutils.xml" xpointer="xpointer(//*[@role='package']/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>Not checked yet</seg> <seg>Not checked yet</seg> </seglistitem> </segmentedlist> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/binutils.xml" xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/> </sect2> <sect2 role="installation"> <title>Installation of Cross Binutils To make sure that the proper syntax is used for a couple of tools, apply the following patch: patch -Np1 -i ../&binutils-posix-patch; ../binutils-&binutils-version;/configure --prefix=/cross-tools \ --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \ --disable-nls --enable-shared --enable-64-bit-bfd The meaning of the configure options: --prefix=/cross-tools This tells the configure script to prepare to install the package in the /cross-tools directory. --host=${LFS_HOST} This do ... --target=${LFS_TARGET} This do ... --with-lib-path=/tools/lib This tells the configure script to specify the library search path during the compilation of Binutils, resulting in /tools/lib being passed to the linker. This prevents the linker from searching through library directories on the host. --disable-nls This disables internationalization as i18n is not needed for the cross-compile tools. --enable-shared Enable the creation of the shared libraries. --enable-64-bit-bfd This adds 64 bit support to our toolchain. Compile the package: make configure-host make headers -C bfd make The meaning of the make options: configure-host This do ... headers -C bfd This do ... Install the package: make install Copy libiberty.h file to /tools/include directory: cp ../binutils-&binutils-version;/include/libiberty.h /tools/include <para>Details on this package are located in <xref linkend="contents-binutils" role="."/></para> </sect2> </sect1>