#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Applying patches (if any) apply_patches ${PACKAGE} cd ${LFS_TMP}/${PACKAGE} # Change a hardcoded path from /usr/include to /tools/include: sed -i 's@/usr/include@/tools/include@g' ext/Errno/Errno_pm.PL ./configure.gnu \ --prefix=/tools \ -Dcc="gcc" \ ${CONFIGURE_OPTS} make make install ldconfig ln -svfT /tools/bin/perl /usr/bin/perl exit $?