I am running:
Linux locahost 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686 athlon
and was looking for how and when ldconfig gets called at boot time.
The only call I found was in
/etc/rc.d/rc.sysinit and that script calls it as follows:
shopt -s nullglob
for library in /lib/kernel/$(uname -r)/libredhat-kernel.so* ; do
ln -f $library /lib/
ldconfig -n /lib/
shopt -u nullglob
Now my system has no directory named 2.4.18-14 (the output of uname -r
on my system) that resides in /lib/kernel. In fact, only a directory
named "stub" resides in /lib/kernel on my system
If there were such a directory and file, what would the ln -f command
do? Some manually run experiments suggest that a copy of the file is
made into the /lib/ directory. And then ldconfig runs with the -n
option for only /lib. This suggests to me that having additional
directories in /etc/ld.so.conf is a waste of time with respect to
having additional libraries put into the ld.so.cache at boot time. Is
that true? If so, is this a bug or a feature?
Also, I am curious if it is a bug or feature that I have no directory
for the kernel version in /lib/kernel. Any thoughts? Or is the
rc.sysinit script out of date relative to redhat layouts?
Thanks in advance