summaryrefslogtreecommitdiff
path: root/rules/build-prog.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-06-22 16:16:49 +0100
committerIan Lynagh <ian@well-typed.com>2013-06-22 16:16:49 +0100
commit9ffe7920db654eed38f8c0e7dbfbab7e92fa9396 (patch)
treef13b6bff08ddf404bf427e6bdff85cd6b3205a67 /rules/build-prog.mk
parent3660ef9554de9953cb27d4e8dd007a3ab499abab (diff)
downloadhaskell-9ffe7920db654eed38f8c0e7dbfbab7e92fa9396.tar.gz
On OS X, fix the path to the libffi dynlib; fixes #7833
Diffstat (limited to 'rules/build-prog.mk')
-rw-r--r--rules/build-prog.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index cfaadaacd1..17d64da1c9 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -270,6 +270,7 @@ endif
# Use relative paths for the RTS. Rather than try to work out which RTS
# way is being linked, we just change it for all ways
install_name_tool $$(foreach w,$$(rts_WAYS), -change $$(TOP)/$$(rts_$$w_LIB) @loader_path/../rts-$$(rts_VERSION)/$$(rts_$$w_LIB_NAME)) $$@
+ install_name_tool -change $$(TOP)/$$(wildcard libffi/build/inst/lib/libffi.*.dylib) @loader_path/../rts-$$(rts_VERSION)/libffi.dylib $$@
endif
endif
endif