#!/bin/bash
-configure_pre()
+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
}