Bad rpath/LD_LIBRARY_PATH settings in kdelibs build scripts?

David Faure faure at kde.org
Tue Jun 11 19:20:48 UTC 2013


Le mercredi 5 juin 2013 23:30:31 Alexander Neundorf a écrit :
> On Wednesday 05 June 2013, Alex Merry wrote:
> > On 04/06/13 23:01, David Faure wrote:
> > > Hm, but why doesn't it work then? I see builddir/libkdeqt5staging/src in
> > > both the RPATH and the RUNPATH, and one of these has priority over the
> > > env var, no? I must be confused about how they work, then.
> > 
> > https://blog.qt.digia.com/blog/2011/10/28/rpath-and-runpath/ suggests
> > that RPATH is only used if RUNPATH is not set.  --enable-new-dtags sets
> > both, which (with a modern loader) seems to mean that it behaves as if
> > only RUNPATH is set (I guess the RPATH is a backwards-compatibility
> > measure).
> 
> Yes.
> If RUNPATH is set, RPATH is ignored. LD_LIBRARY_PATH has priority over
> RUNPATH, but not over RPATH.

I see, thanks for the explanations.

I have removed the setting of LD_LIBRARY_PATH from the "Building" wiki now.

Let's see if it stands the test of time :-)

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list