X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Feglibc;h=61732609217eea3a12809c9c4f93d33a9d3e6828;hb=3a7685561df0a4d80e727e5b26fbf413ad0586f2;hp=6aa0607bc92be43381ee32a3c3daae360b8a46b6;hpb=609b33c0aeaf4095bc8d298eb1f67b3a3489c010;p=hvlinux.git diff --git a/stage2/pkg/eglibc b/stage2/pkg/eglibc index 6aa0607..6173260 100644 --- a/stage2/pkg/eglibc +++ b/stage2/pkg/eglibc @@ -44,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.