diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-04-27 00:26:06 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-04-27 00:26:06 +0100 |
commit | 9843083601adb7db03844aecd9a855b0d06609a7 (patch) | |
tree | e5db2f8227d4e7722b1ac1633359cbef868b0427 /rts/ghc.mk | |
parent | ebc4305e7c98d4443c94f570dac2a9c3046f90f6 (diff) | |
download | haskell-9843083601adb7db03844aecd9a855b0d06609a7.tar.gz |
When linking with $ORIGIN rpaths, use the "-z origin" linker flag too
On FreeBSD, one needs use "-z origin" in order to enable resolution
of $ORIGIN in RPATH. Part of #7819.
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r-- | rts/ghc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk index b3b51a6d23..b84c9f5f71 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -186,7 +186,7 @@ else ifneq "$$(UseSystemLibFFI)" "YES" LIBFFI_LIBS = -Lrts/dist/build -lffi ifeq "$$(TargetElf)" "YES" -LIBFFI_LIBS += -optl-Wl,-rpath -optl-Wl,'$$$$ORIGIN' +LIBFFI_LIBS += -optl-Wl,-rpath -optl-Wl,'$$$$ORIGIN' -optl-Wl,-z -optl-Wl,origin endif else |