Lower minimum kernel version for glibc
[hvlinux.git] / stage0 / pkg / glibc
index d31ab21..85a2e38 100644 (file)
@@ -18,17 +18,17 @@ hvconfig_pre()
         --build=${CLFS_HOST} \
         --disable-profile \
         --with-tls \
-        --enable-kernel=$(get_pkg_ver3 ${KERNEL}) \
+        --enable-kernel=$(get_pkg_ver1 ${KERNEL}).0.0 \
         --with-__thread \
-        --with-binutils=/cross-tools/bin \
+        --with-binutils=${CROSS_TOOLS_DIR}/bin \
         --enable-obsolete-rpc \
-        --with-headers=/tools/include"
+        --with-headers=${TOOLS_DIR}/include"
 }
 
 # For Glibc to support NPTL:
 hvconfig_cache()
 {
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
 libc_cv_forced_unwind=yes
 libc_cv_c_cleanup=yes
 libc_cv_gnu89_inline=yes
@@ -36,6 +36,12 @@ libc_cv_ssp=no
 EOF
 }
 
+hvbuild()
+{
+    ${HVMAKE}
+    ${HVMAKE} install_root=${LFS} install
+}
+
 hvconfig_post()
 {
     unset BUILD_CC