A question about LD_LIBRARY_PATH

Trevor Woerner twoerner@gmail.com
Tue Mar 26 15:14:00 GMT 2013

On Tue, Mar 26, 2013 at 7:16 AM, Alan Modra <amodra@gmail.com> wrote:
> On Tue, Mar 26, 2013 at 11:46:57AM +0100, MARGUINAUD Philippe wrote:
>> I have a question about the environment variable LD_LIBRARY_PATH. I
>> would like to know whether it takes precedence over the RPATH encoded in
>> the binary executable.
> It depends on whether your apps are using DT_RPATH or DT_RUNPATH.
> http://en.wikipedia.org/wiki/Rpath

It's also worth nothing that some distributions enable
--enable-new-dtags by default in their toolchains:
    openSuSE: http://sourceware.org/ml/binutils/2012-05/msg00029.html
    gentoo: http://sourceware.org/ml/binutils/2012-05/msg00033.html
    mandriva: https://qa.mandriva.com/show_bug.cgi?id=28465

More information about the Binutils mailing list