TOC  
Previous  
Next
Finding Shared Libraries at Run-time
The dynamic linker searches for shared libraries 
in the following order:
- If 
LD_LIBRARY_PATH 
is defined, then each of the colon-separated directories listed 
in its value is searched in turn.  
 -  
/etc/ld.so.cache
 is checked to see if it contains 
an entry for the library.
 - 
/lib
 and 
/usr/lib
  are searched (in that order).
 
(C) 2006, Michael Kerrisk