FreeHealth / freehealth

Free and open source Electronic Health Record
https://freehealth.io
Other
44 stars 16 forks source link

let's make rpath great again #90

Open jeromecc opened 7 years ago

jeromecc commented 7 years ago

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\'"

} 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.