summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-20 19:25:27 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-20 19:25:27 +0000
commit51bf3653775ba734f7ca3de99234aba722a0c72c (patch)
tree5f86e5ce5e8f9301f861d96fee6d2980ed23eb10 /rts/ghc.mk
parent0f49dd691a364ec28007470aabe4fd9fed56e603 (diff)
downloadhaskell-51bf3653775ba734f7ca3de99234aba722a0c72c.tar.gz
Fix build with non-Linux ELF OSes
We were only setting an RPATH for the RTS DLL on Linux, but as far as I can see we should be doing it for all ELF OSes. Hopefully this will fix the problem where the installed ghc-pkg can't find libffi.dll on FreeBSD.
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 09c2874209..ce17b74129 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -194,7 +194,7 @@ $$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend rts/dist/b
else
ifneq "$(UseSystemLibFFI)" "YES"
LIBFFI_LIBS = -Lrts/dist/build -lffi
-ifeq "$$(TargetOS_CPP)" "linux"
+ifeq "$$(TargetElf)" "YES"
LIBFFI_LIBS += -optl-Wl,-rpath -optl-Wl,'$$$$ORIGIN'
endif