On 05/31/09 20:30, Ezra Peisach wrote:
> One of the other misfeatures of rpath is that it sets DT_RPATH and not
> DT_RUNPATH  - which means that LD_LIBRARY_PATH will not override the
> setting... This means if you have a library installed in the RPATH and
> you set LD_LIBRARY_PATH (for in tree development  - or old installation
> and a new tree) you are using the wrong library.  This is a magical
> option to ld to use DT_RUNPATH - but I do not remember it - but then you
> can use LD_LIBRARY_PATH to override... See the ld.so manoage for
> DT_RPATH vs RUNPATH....

But RPATH is deprecated by RUNPATH, isn't it?  I believe RPATH overrides
LD_LIBRARY_PATH, whereas RUNPATH doesn't.  If both RPATH and RUNPATH are
set, RPATH is ignored.

// Cheers; Johan

Reply via email to