From c1cc3cb8d7618a9a38d31f0a2f626a9344b64848 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Mon, 14 Mar 2011 23:28:55 +0000 Subject: [PATCH] =?utf8?q?M=C3=A9thode=20plus=20fiable=20pour=20d=C3=A9tec?= =?utf8?q?ter=20la=20version=20eglibc?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage2/pkg/eglibc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. -- 2.20.1