Jacob Carlborg wrote: >On 2011-07-22 12:38, Johannes Pfau wrote: >> The rpath page says this: >> 1. the RPATH binary header (set at build-time) of the library causing >> the lookup (if any) >> >> 2. the RPATH binary header (set at build-time) of >> the executable >> >> 3. the LD_LIBRARY_PATH environment variable (set at >> run-time) >> >> 4. the RUNPATH binary header (set at build-time) of the >> executable >> >> 5. /etc/ld.so.cache (generated from /etc/ld.so.conf >> and /etc/ld.so.conf.d) >> >> 6. base library directories (/lib and /usr/lib) >> >> But that depends on the C library / linker implementation. > >Since RPATH and LD_LIBRARY_PATH is discouraged only 4, 5 and 6 are >left? >
As far as I know, yes. However, note that 5 and 6 are 'global' options, they affect all executables and (dynamic) libraries. -- Johannes Pfau