aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/glibc.xml
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-06-15 05:23:47 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-06-15 05:23:47 +0000
commitd125a6bd0b28c20b3a26143028591bd847aa20ed (patch)
tree39a7ef780fec9ccd813e338000abd9b7731288f7 /chapter05/glibc.xml
parent70f0882d4c658c6d1355218fccf821ca31d0af18 (diff)
Add forgotten "case" in glibc chapter 5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11942 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/glibc.xml')
-rw-r--r--chapter05/glibc.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index 1b72b4e20..0888427df 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -43,11 +43,17 @@
<sect2 role="installation">
<title>Installation of Glibc</title>
- <para>First, create two symbolic links, which are needed for proper
+ <para>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:</para>
-<screen><userinput remap="pre">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</userinput></screen>
+<screen><userinput remap="pre">case $(uname -m) 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
+ ;;
+esac</userinput></screen>
<para>Some of the Glibc programs use the non-FHS compliant
<filename class="directory">/var/db</filename> directory to store their