Hadrian: Fix rpath so shared objects work after being copied
authorMatthew Pickering <matthewtpickering@gmail.com>
Sun, 10 Mar 2019 17:37:48 +0000 (17:37 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 12 Mar 2019 13:04:52 +0000 (09:04 -0400)
commit4cf2160afe0e08fe29576895a1eced863d3a521d
tree6fc57d65930c12a4261cbdb8ed93c9823d462950
parent705fa21d674a5a799712346e01033db98b16e71d
Hadrian: Fix rpath so shared objects work after being copied

After being copied all the shared objects end up in the same directory.
Therefore the correct rpath is `$ORIGIN` rather than the computed
path which is relative to the directory where it is built.
hadrian/src/Settings/Builders/Ghc.hs