#!/bin/bash hvconfig_pre() { export BUILD_CC="gcc" export CC="${CLFS_TARGET}-gcc ${CLFS_BUILDFLAGS}" export AR="${CLFS_TARGET}-ar" export RANLIB="${CLFS_TARGET}-ranlib" # --with-headers # tells GLIBC where the Linux kernel headers are installed. # --enable-obsolete-rpc # install rpc headers that are not installed by default but may be # needed by other packages. CONFIGURE_OPTS="\ --prefix=/tools \ --host=${CLFS_TARGET} \ --build=${CLFS_HOST} \ --disable-profile \ --with-tls \ --enable-kernel=$(get_pkg_ver3 ${KERNEL}) \ --with-__thread \ --with-binutils=${CROSS_TOOLS_DIR}/bin \ --enable-obsolete-rpc \ --with-headers=${TOOLS_DIR}/include" } # For Glibc to support NPTL: hvconfig_cache() { cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_gnu89_inline=yes libc_cv_ssp=no EOF } hvbuild() { ${HVMAKE} ${HVMAKE} install install_root=${CLFS} } hvconfig_post() { unset BUILD_CC unset CC unset AR unset RANLIB }