Index: chapter05/glibc.xml
===================================================================
--- chapter05/glibc.xml (revision 30ae09bb76ab48615d0b23ca780be9e60638ccc5)
+++ chapter05/glibc.xml (revision db51ee93257aa1023f7637505590b2cddfb12a1a)
@@ -46,11 +46,13 @@
First, create a symbolic link for LSB compliance. Additionally,
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
+ operation of the dynamic library loader. It's needed to adjust the
+ command if you are building LFS for a target other than 32-bit or
+ 64-bit x86.
+
+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