From 50f648b0eeb0297da4075efc596b4d553f927aa1 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 13 Apr 2011 03:42:50 +0000 Subject: [PATCH] Added optional instructions that explains how to add /etc/ld.so.conf.d as an include directory for the loader git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9496 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter06/glibc.xml | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4fe1edb1c..4dd5be07a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,11 @@ 2011-04-12 + + [bdubbs] - Added optional instructions to allow a user + to use an include directory to supplement ld.so.conf. Fixes + #2843. + [bdubbs] - Rewrote General Compilation Instructions using better docbook structures and clarified a couple of points. Fixes diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 7c8159272..9745908f5 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -370,13 +370,23 @@ EOF cat > /etc/ld.so.conf << "EOF" # Begin /etc/ld.so.conf - /usr/local/lib /opt/lib - -# End /etc/ld.so.conf + EOF + If desired, the dynamic loader can also search a directory and + include the contents of files found there. Generally the files in + this include directory are one line specifying the desired library path. + To add this capability run the following commands: + +cat >> /etc/ld.so.conf << "EOF" +# Add an include directory +include /etc/ld.so.conf.d/*.conf + +EOF +mkdir /etc/ld.so.conf.d +