[Development] RPATH in libraries

Konrad Rosenbaum konrad at silmor.de
Tue Aug 6 15:41:21 CEST 2013

On Sunday 04 August 2013 18:51:10 Thiago Macieira wrote:
> On domingo, 4 de agosto de 2013 10:20:51, Dmitry Ashkadov wrote:
> > LDD finds library using RPATH first of all, so, for local installed Qt5
> That's why RPATH was deprecated and replaced with RUNPATH.

Stupid question: is there a reason the default Makefile generated by qmake 
does not include this:
QMAKE_LFLAGS += -Wl,--enable-new-dtags

This would generate DT_RPATH as well as an identical DT_RUNPATH, which would 
lead to more useful binaries on modern (as in: less than 10 years old) ELF 
systems, because RUNPATH behavior takes precedence over RPATH if the system 
understands it (according to man ld).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130806/1f7c57f3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130806/1f7c57f3/attachment.sig>

More information about the Development mailing list