rpath.pri 548 Bytes
Newer Older
1
macx {
2
    QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../
3 4
} else:linux-* {
    #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
5
    # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
6 7
    QMAKE_RPATHDIR += \$\$ORIGIN
    QMAKE_RPATHDIR += \$\$ORIGIN/..
8
    QMAKE_RPATHDIR += \$\$ORIGIN/../$$IDE_LIBRARY_BASENAME/qtcreator
9
    IDE_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
10

11 12 13
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${IDE_PLUGIN_RPATH}\'
    QMAKE_RPATHDIR =
}