RedHat Dynamic loader shared library search order is backward
I am working on enterprise release 4 and setting the variable LD_DEBUG=all to see how the loader is finding shared libraries for a program. The output says it is looking along $PATH variable, then the -rpath from the link, then the LD_LIBRARY_PATH, and then finally the /etc/ld.so.cache file. I thought Linux created the cache file to enhance performance on lookups and here it is using it as the last resort. I have tried doing some searches on the web related to this and haven't found anything. Anyone know about this and if this is a bug or can you control the order somehow?
|All times are GMT -5. The time now is 01:01 AM.|