X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpkg%2Feglibc;h=fe9dfe2407680d01a0bb5cf6dd345de8c1b88468;hb=b5bfb2006502b57fab234345a2393fd04e6d55ad;hp=4d98d1b0510ed7cf0804ac12ffe4cbe4cabd24c6;hpb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;p=hvlinux.git diff --git a/stage0/pkg/eglibc b/stage0/pkg/eglibc index 4d98d1b..fe9dfe2 100644 --- a/stage0/pkg/eglibc +++ b/stage0/pkg/eglibc @@ -1,17 +1,24 @@ #!/bin/bash -hvpatch() -{ - case "${HVL_TARGET}" in - "x86" | "x86_64") - # Manually apply patch - #apply_patch ${1}-rpath.patch ${1} - ;; - esac -} +BUILD_CC="gcc" +CC="${CLFS_TARGET}-gcc ${CLFS_BUILDFLAGS}" +AR="${CLFS_TARGET}-ar" +RANLIB="${CLFS_TARGET}-ranlib" + +CONFIGURE_OPTS="\ + --prefix=/tools \ + --host=${CLFS_TARGET} \ + --build=${CLFS_HOST} \ + --disable-profile \ + --enable-add-ons \ + --with-tls \ + --enable-kernel=$(get_pkg_ver ${KERNEL}) \ + --with-__thread \ + --with-binutils=/cross-tools/bin \ + --with-headers=/tools/include" # For Glibc to support NPTL: -config_cache() +hvconfig_cache() { cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF libc_cv_forced_unwind=yes @@ -21,7 +28,7 @@ libc_cv_ssp=no EOF } -configure_pre() +hvconfig_pre() { case "${HVL_TARGET}" in "x86") @@ -38,6 +45,4 @@ configure_pre() # Disable linking to libgcc_eh: sed -e 's/-lgcc_eh//g' -i Makeconfig - - DEFAULT_CONFIGURE_PREFIX=/tools }