Add notes for binutils option --enable-64-bit-bfd
[hvlinux.git] / stage0 / pkg / eglibc
index be97599..d86bf1a 100644 (file)
@@ -14,7 +14,7 @@ hvconfig_pre()
         --disable-profile \
         --enable-add-ons \
         --with-tls \
-        --enable-kernel=$(get_pkg_ver ${KERNEL}) \
+        --enable-kernel=$(get_pkg_ver3 ${KERNEL}) \
         --with-__thread \
         --with-binutils=/cross-tools/bin \
         --with-headers=/tools/include"
@@ -23,7 +23,10 @@ hvconfig_pre()
 
     decompress_package ${EGLIBC_PORTS} $(pwd) 1> /dev/null
 
-    # Disable linking to libgcc_eh:
+    # libgcc_eh.a does not get built if building GCC with `--disable-shared'.
+    # The objects that would otherwise end up in libgcc_eh.a end up in libgcc.a
+    # instead. Unfortunately, Glibc insists upon linking with `-lgcc_eh'.
+    # Therefore, disable linking to libgcc_eh:
     sed -e 's/-lgcc_eh//g' -i Makeconfig
 }
 
@@ -38,6 +41,12 @@ libc_cv_ssp=no
 EOF
 }
 
+hvbuild()
+{
+    ${HVMAKE}
+    ${HVMAKE} install inst_vardbdir=/tools/var/db
+}
+
 hvconfig_post()
 {
     unset BUILD_CC