#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && # Saves CFLAGS and CXXFLAGS, and clears them. save_flags_no_optimizations cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --target=${TARGET} \ --prefix=${PREFIX} && make all && make install && # Restore original CFLAGS and CXXFLAGS values. restore_flags # Return last error exit $?