Details
Description
I want to build a binary which have exactly one rpath $ORIGIN/../lib.
For that I should write
cpp.rpaths: ["$ORIGIN/../lib"]
However QBS forces two another entries which could not be disabled:
$ORIGIN from share/qbs/modules/cpp/LinuxGCC.qbs and Qt libPath from core.qbs of QtCore module.
To work around this I have to disable cpp.useRPaths and fall back to cpp.linkerFlags.
I think QBS should not implicitly fill this property.
Attachments
For Gerrit Dashboard: QBS-1035 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
177296,2 | Cpp Module: Remove default rpath entry for Linux | 1.7 | qbs/qbs | Status: MERGED | +2 | 0 |
505604,2 | Qt support: Let the user decide whether to use RPATH when linking | master | qbs/qbs | Status: MERGED | +2 | -1 |