#!/bin/bash
-AR=ar
-LDFLAGS="-Wl,-rpath,/cross-tools/lib"
-
hvpatch()
{
# Manually applying patches if specified
hvconfig_pre()
{
+ export AR=ar
+ export LDFLAGS="-Wl,-rpath,/cross-tools/lib"
+
# Common options for passes 1 & 2
- CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS="\
+ ${CONFIGURE_OPTS} \
--build=${CLFS_HOST} \
--host=${CLFS_HOST} \
--target=${CLFS_TARGET} \
--with-local-prefix=/tools \
--disable-nls \
--with-mpfr=/cross-tools \
- --with-gmp=/cross-tools"
+ --with-gmp=/cross-tools \
+ --with-ppl=/cross-tools \
+ --with-cloog=/cross-tools \
+ --enable-cloog-backend=isl \
+ --disable-multilib"
if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
CONFIGURE_OPTS="${CONFIGURE_OPTS} \
--enable-threads=posix"
fi
- case "${HVL_TARGET}" in
- *)
- CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-ppl=/cross-tools \
- --with-cloog=/cross-tools \
- --disable-multilib"
- ;;
- esac
-
cd ${LFS_TMP}/${PACKAGE}
# Change the StartFile Spec to point to the correct library location:
fi
}
+hvconfig_post()
+{
+ unset AR
+ unset LDFLAGS
+}
+
hvbuild()
{
if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then