On Wed, 02 Jul 2003 19:04:41 +0100, Andrew Jones wrote:
Linux man pages are not always authoritative or correct. It appears that> From looking at these man pages it would appear that ld reads ld.so.conf.
> From man ld:
> The linker uses the following search paths to locate required
> shared libraries.
> 8. For a native linker on an ELF system, if the file
> /etc/ld.so.conf exists, the list of directories found in that
you have found one of those inconsistencies. As an example:
The man page for su indicates that a user executing 'su' should have the
new UID inherit the user's environment, but:
Note the shell prompt symbol. OHOH, with Solaris:
# bash # root's shell is /sbin/sh
Just do it. Add the -R argument too, and you don't need /etc/ld.so.conf.> And ld.so reads ld.so.cache.
> From man ld.so:
> The necessary shared libraries needed by the program are searched for
> in the following order
> o From the cache file /etc/ld.so.cache which contains a compiled
> list of candidate libraries previously found in the augmented
> library path.
> As shown by ldconfig -p ld.so.cache has the correct link as does
> ld.so.conf. So why do I still need the `-L'?