X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpkg%2Fbinutils;h=2653b0d799025bde7f0a397c82045f8e2aaa375f;hb=005c76dd024c18ea80adfc1c5c1be2bbc05f269d;hp=5c8036437946e410b66a02fc7fbff422ac158a8e;hpb=1422b969f72925bc679180c80ac0fa2518b16a03;p=hvlinux.git diff --git a/stage0/pkg/binutils b/stage0/pkg/binutils index 5c80364..2653b0d 100644 --- a/stage0/pkg/binutils +++ b/stage0/pkg/binutils @@ -5,15 +5,25 @@ hvconfig_pre() export AR=ar export AS=as - CONFIGURE_OPTS+=" \ + # --with-lib-path: + # Set to dummy (non-existent) directory to prevent having + # host directories list. + CONFIGURE_OPTS=" \ + --prefix=/cross-tools \ --host=${CLFS_HOST} \ --target=${CLFS_TARGET} \ --with-sysroot=${CLFS} \ - --with-lib-path=/tools/lib \ + --with-lib-path=${CLFS}/dummy-directory/ \ --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" @@ -21,14 +31,15 @@ hvconfig_pre() esac } +hvbuild() +{ + ${HVMAKE} + ${HVMAKE} install DESTDIR=${CLFS} +} + hvconfig_post() { unset AR unset AS ${HVMAKE} configure-host } - -hvbuild_post() -{ - cp -v ../${PACKAGE}/include/libiberty.h /tools/include -}