[Qbs] avoid RPATH pointing to Qt installation folder
Christian Kandeler
Christian.Kandeler at qt.io
Tue Oct 8 10:51:43 CEST 2019
On Tue, 8 Oct 2019 09:53:32 +0200
Heiko Nardmann <heiko.nardmann at itechnical.de> wrote:
> I'm looking for a way to prevent the RPATH of an executable pointing to
> the installed Qt. From the "core.qbs" file I see that cpp.rpaths is set
> to libPath for Linux by default.
There should probably be a Qt.core property that controls this. Until then, you'll have to force-override cpp.rpaths in your app product:
Properties {
condition: true
overrideListProperties: true
cpp.rpaths: [ /* full list of your rpaths */ ]
}
(Of course, if you don't want any RPATH at all, then "cpp.useRPaths: false" is the way to go.)
Christian
More information about the Qbs
mailing list