#!/bin/bash set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${PACKAGE} cd ${LFS_TMP}/${PACKAGE}-build CC="${CC} ${CLFS_BUILDFLAGS}" CXX="${CXX} ${CLFS_BUILDFLAGS}" \ ../${PACKAGE}/configure \ --prefix=/tools \ --build=${CLFS_HOST} \ --host=${CLFS_TARGET} \ ${CONFIGURE_OPTS} # When PPL is cross-compiled, it does not check whether GMP was compiled with # support for exceptions, and simply assumes it was not. This assumption is # incorrect, so we will fix that: echo '#define PPL_GMP_SUPPORTS_EXCEPTIONS 1' >> confdefs.h ${HVMAKE} ${HVMAKE} install exit $?