#!/bin/sh 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}" PKG_CONFIG=true \ ../${PACKAGE}/configure \ --prefix=/tools \ --enable-elf-shlibs \ --with-cc="${CC} ${CLFS_BUILDFLAGS}" \ --with-linker=${LD} \ --host=${CLFS_TARGET} \ --disable-libblkid \ --disable-libuuid \ --disable-fsck \ --disable-uuidd ${HVMAKE} LIBUUID="-luuid" STATIC_LIBUUID="-luuid" \ LIBBLKID="-lblkid" STATIC_LIBBLKID="-lblkid" ${HVMAKE} install # Install the static libraries and headers: ${HVMAKE} install-libs # Create needed symlinks for a bootable system: LINKS="fsck.ext2 fsck.ext3 fsck.ext4 e2fsck" for link in ${LINKS}; do ln -svfT /tools/sbin/${link} ${LFS}/sbin/${link} done exit $?