X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Feglibc;h=61732609217eea3a12809c9c4f93d33a9d3e6828;hb=29db7d168ced2d524076370f72a9140521b11105;hp=a4ebe94860d3ee7b2310b1e46eeee599f36f5e09;hpb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;p=hvlinux.git diff --git a/stage2/pkg/eglibc b/stage2/pkg/eglibc index a4ebe94..6173260 100644 --- a/stage2/pkg/eglibc +++ b/stage2/pkg/eglibc @@ -2,20 +2,12 @@ hvconfig_pre() { - CFLAGS="-mtune=generic -g -O2" - CONFIGURE_OPTS="\ + ${CONFIGURE_OPTS} \ --disable-profile \ --enable-add-ons \ --enable-kernel=$(get_pkg_ver ${KERNEL}) \ - --libexecdir=/usr/lib/eglibc \ - ${CONFIGURE_OPTS}" - - case "${HVL_TARGET}" in - "x86") - CFLAGS="-march=$(cut -d- -f1 <<< ${CLFS_TARGET}) ${CFLAGS}" - ;; - esac + --libexecdir=/usr/lib/eglibc" # When running make install, a script called test-installation.pl performs a # small sanity test on our newly installed Glibc. However, because our @@ -52,8 +44,10 @@ hvbuild() # 32-bit loader which has a different name from the 64-bit loader # (unlike on other 64-bit architectures). We fool it by creating a # symlink to the real loader. - EGLIBC_VER_BASE=$(echo ${PACKAGE} | sed "s!eglibc-\([^-]*\)-.*!\1!g") - ln -svfT ld-${EGLIBC_VER_BASE}.so /lib/ld-linux.so.2 + local EGLIBC_VER=$(cat ${LFS_TMP}/${PACKAGE}/version.h | \ + grep "VERSION" | sed "s!.*VERSION\ \"\(.*\)\"!\1!") + + ln -svfT ld-${EGLIBC_VER}.so /lib/ld-linux.so.2 make install # Now we can remove this symlink.