aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc.xml
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2016-12-17 06:46:18 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2016-12-17 06:46:18 +0000
commitbe3d9f313a25000d1cbaa631852be62330828f2c (patch)
tree87d04399c46fe7a8612b0f3247011dc1c55adb46 /chapter06/glibc.xml
parent9f3c264e7c4b780161c70e899c09084bc1c400bd (diff)
Merge nosym branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11154 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r--chapter06/glibc.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index 1a908a822..2c8718932 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -57,6 +57,18 @@
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
+ <para>Create a symlink for LSB compliance and, for x86_64, a
+ compatibility symlink required for the dynamic loader to function
+ correctly:</para>
+
+<screen><userinput remap="pre">case $(uname -m) in
+ x86) ln -s ld-linux.so.2 /lib/ld-lsb.so.3
+ ;;
+ x86_64) ln -s ../lib/ld-linux-x86-64.so.2 /lib64
+ ln -s ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
+ ;;
+esac</userinput></screen>
+
<para>The Glibc documentation recommends building Glibc
in a dedicated build directory:</para>
@@ -67,7 +79,8 @@ cd build</userinput></screen>
<screen><userinput remap="configure">../configure --prefix=/usr \
--enable-kernel=&min-kernel; \
- --enable-obsolete-rpc</userinput></screen>
+ --enable-obsolete-rpc \
+ libc_cv_slibdir=/lib</userinput></screen>
<para>Compile the package:</para>