X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage0%2Fpkg%2Feglibc;h=3dde496c2e65bfac55f12902f54e17ece7e42ac0;hb=5ac37bce4a0292f835f6dced9cde88c7e92223f9;hp=be97599e68b3b8fed60120237690053362f7f03e;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage0/pkg/eglibc b/stage0/pkg/eglibc index be97599..3dde496 100644 --- a/stage0/pkg/eglibc +++ b/stage0/pkg/eglibc @@ -7,6 +7,11 @@ hvconfig_pre() 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} \ @@ -14,7 +19,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 +28,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 +46,12 @@ libc_cv_ssp=no EOF } +hvbuild() +{ + ${HVMAKE} + ${HVMAKE} install inst_vardbdir=/tools/var/db +} + hvconfig_post() { unset BUILD_CC