From f33eca9bf15c3702c61a92de73f6289e9c08b995 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Fri, 30 Aug 2024 10:20:37 +0200 Subject: [PATCH] Linker name depends on target system, not host system --- chapter05/glibc.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index eab92f4be..dfe897855 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -47,11 +47,11 @@ for x86_64, create a compatibility symbolic link required for proper operation of the dynamic library loader: -case $(uname -m) in - i?86) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3 +case "$LFS_TGT" in + i?86-*) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3 ;; - x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64 - ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3 + x86_64-*) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64 + ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3 ;; esac