libs/rpath.pri:
do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
Not possible? Yes it is:
unix:{
suppress the default RPATH if you wish
QMAKE_LFLAGS_RPATH=
# add your own with quoting gyrations to make sure $ORIGIN gets to the command line unexpanded
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\'"
libs/rpath.pri: do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
Not possible? Yes it is: unix:{
suppress the default RPATH if you wish
} Source: http://stackoverflow.com/questions/27384406/setting-rpath-order-in-qmake
Let's make linking and rpath great again!
This causes bugs when trying to build FreeRx (Freediams) in debug mode on Linux. Which is not practical because that's where development happens.