-#!/bin/sh
+#!/bin/bash
set -o errexit
# Reading system configuration informations, functions and package versions.
# Manually applying patches
apply_patch ${1}-branch_update-1.patch ${1}
+case "${HVL_TARGET}" in
+ *)
+ TARGET_CONFIGURE_OPTS="--with-ppl=/cross-tools \
+ --with-cloog=/cross-tools \
+ --disable-multilib"
+ ;;
+esac
+
case "${HVL_TARGET}" in
"x86")
apply_patch ${1}-specs-1.patch ${1}
# --enable-languages=c,c++
# This option ensures that only the C and C++ compilers are built.
# --enable-__cxa_atexit
-# This option allows use of __cxa_atexit, rather than atexit, to register C++ destructors for local
-# statics and global objects and is essential for fully standards-compliant handling of
-# destructors. It also affects the C++ ABI and therefore results in C++ shared libraries and C++
-# programs that are interoperable with other Linux distributions.
+# This option allows use of __cxa_atexit, rather than atexit, to register
+# C++ destructors for local
+# statics and global objects and is essential for fully standards-compliant
+# handling of destructors. It also affects the C++ ABI and therefore results
+# in C++ shared libraries and C++ programs that are interoperable with other
+# Linux distributions.
# --enable-c99
# Enable C99 support for C programs.
# --enable-long-long
--enable-__cxa_atexit \
--with-mpfr=/cross-tools \
--with-gmp=/cross-tools \
- --with-ppl=/cross-tools \
- --with-cloog=/cross-tools \
--enable-c99 \
--enable-long-long \
--enable-threads=posix \
- --disable-multilib
+ ${TARGET_CONFIGURE_OPTS}
${HVMAKE} \
AS_FOR_TARGET="${CLFS_TARGET}-as" \
LD_FOR_TARGET="${CLFS_TARGET}-ld"