#!/bin/bash
-CONFIGURE_OPTS="\
- --target=${CLFS_TARGET} \
- --disable-multilib \
- --with-local-prefix=/tools \
- --libexecdir=/tools/lib \
- --disable-nls \
- --disable-libstdcxx-pch \
- --enable-long-long \
- --enable-c99 \
- --enable-shared \
- --enable-threads=posix \
- --enable-__cxa_atexit \
- --enable-languages=c,c++ \
- ${CONFIGURE_OPTS}"
-
-hvpatch()
-{
- # Manually applying patches if specified
- if [ -n "${GCC_PATCHES}" ]; then
- for p in ${GCC_PATCHES}; do
- apply_patch ${PACKAGE}-${p}.patch ${PACKAGE}
- done
- fi
-
- case "${HVL_TARGET}" in
- "x86")
- apply_patch ${PACKAGE}-specs-1.patch ${PACKAGE}
- ;;
- "x86_64")
- apply_patch ${PACKAGE}-pure64_specs-1.patch ${PACKAGE}
- ;;
- esac
-}
-
hvconfig_pre()
{
+ CONFIGURE_OPTS+=" \
+ --target=${CLFS_TARGET} \
+ --disable-multilib \
+ --with-local-prefix=/tools \
+ --libexecdir=/tools/lib \
+ --disable-nls \
+ --disable-libstdcxx-pch \
+ --enable-long-long \
+ --enable-c99 \
+ --enable-shared \
+ --enable-threads=posix \
+ --enable-__cxa_atexit \
+ --enable-languages=c,c++"
+
cd ${LFS_TMP}/${PACKAGE}
# Change the StartFile Spec to point to the correct library location:
{
# Prevent GCC from looking in the wrong directories for headers and
# libraries:
- sed -e "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
+ sed -e "/^HOST_\(GMP\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
-i Makefile
}