#!/bin/sh set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} case "${HVL_TARGET}" in "x86_64") # This adds 64 bit support to Binutils. TARGET_CONFIGURE_OPTS="--enable-64-bit-bfd" ;; esac # --prefix=/tools # This tells the configure script to prepare to install the package in the /tools directory. # --host=${CLFS_HOST} # --target=${CLFS_TARGET} # Creates a cross-architecture executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST}. # --with-lib-path=/tools/lib # 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. # --disable-multilib # This option disables the building of a multilib capable Binutils. # --enable-64-bit-bfd # This adds 64 bit support to Binutils. cd ${LFS_TMP}/${1}-build CC="${CC} ${CLFS_BUILDFLAGS}" \ ../${1}/configure \ --prefix=/tools \ --build=${CLFS_HOST} \ --host=${CLFS_TARGET} \ --target=${CLFS_TARGET} \ --with-lib-path=/tools/lib \ --disable-nls \ --enable-shared \ --disable-multilib \ ${TARGET_CONFIGURE_OPTS} ${HVMAKE} configure-host ${HVMAKE} ${HVMAKE} install exit $?