X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpkg%2Fbinutils;h=443714d52ec1b4ed7388a24b51b83d128e85e4ab;hb=f17ab848cb756cad27489bf0c2746e5ead466658;hp=922e22c18dc3d7dee0933969123be5b568073914;hpb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;p=hvlinux.git diff --git a/stage0/pkg/binutils b/stage0/pkg/binutils index 922e22c..443714d 100644 --- a/stage0/pkg/binutils +++ b/stage0/pkg/binutils @@ -1,33 +1,36 @@ #!/bin/bash -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 \ - ${CONFIGURE_OPTS}" - hvconfig_pre() { + export AR=ar + export AS=as + + CONFIGURE_OPTS="\ + ${CONFIGURE_OPTS} \ + --host=${CLFS_HOST} \ + --target=${CLFS_TARGET} \ + --with-sysroot=${CLFS} \ + --with-lib-path=/tools/lib \ + --disable-nls \ + --enable-shared \ + --disable-multilib" + case "${HVL_TARGET}" in "x86_64") # This adds 64 bit support to Binutils. CONFIGURE_OPTS="${CONFIGURE_OPTS} --enable-64-bit-bfd" ;; esac - } -hvbuild() +hvconfig_post() { + unset AR + unset AS ${HVMAKE} configure-host - ${HVMAKE} - ${HVMAKE} install +} + +hvbuild_post() +{ cp -v ../${PACKAGE}/include/libiberty.h /tools/include }