#!/bin/bash hvconfig_pre() { export AR=ar export AS=as CONFIGURE_OPTS+=" \ --host=${CLFS_HOST} \ --target=${CLFS_TARGET} \ --with-sysroot=${CLFS} \ --with-lib-path=/tools/lib \ --disable-nls \ --enable-shared \ --disable-multilib" # --enable-64-bit-bfd: # bfd = Binary File Descriptor # Include support for 64 bit targets. This is automatically turned on if # you explicitly request a 64 bit target, but not for --enable-targets=all. # If compiling on a 32-bit machine, this option forces to generate a # compiler that can also emit 64-bit code. case "${HVL_TARGET}" in x86_64*) CONFIGURE_OPTS+=" --enable-64-bit-bfd" ;; esac } hvconfig_post() { unset AR unset AS ${HVMAKE} configure-host } hvbuild_post() { cp -v ../${PACKAGE}/include/libiberty.h /tools/include }