summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-12-04 14:36:14 +0000
committerIan Lynagh <igloo@earth.li>2009-12-04 14:36:14 +0000
commit3e18f8be62b06c846b52d79717f79d51e2060593 (patch)
tree23ec97dd15bb48f3dd78f09c76c4894ac86a88d3 /rules
parent5c2220aa9aac0fefcba5abbfa3059a6ef138655f (diff)
downloadhaskell-3e18f8be62b06c846b52d79717f79d51e2060593.tar.gz
Link all dynamic libraries with the correct install_name on Mac OS/X.
This is a rerecord of Stephen Blackheath <oversensitive.pastors.stephen@blacksapphire.com>**20090930222855 to avoid conflicts.
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-way.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 26eacfe93e..ef4477fcec 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -67,6 +67,7 @@ $$($1_$2_$3_LIB) : $$($1_$2_$3_ALL_OBJS) $$(ALL_RTS_LIBS) $$($1_$2_$3_DEPS_LIBS)
"$$($1_$2_HC)" $$($1_$2_$3_ALL_OBJS) \
`$$($1_$2_$3_MKSTUBOBJS)` \
-shared -dynamic -dynload deploy \
+ -dylib-install-name $(ghclibdir)/`basename "$$@" | sed 's/^libHS//;s/[-]ghc.*//'`/`basename "$$@"` \
-no-auto-link-packages $$(addprefix -package,$$($1_$2_DEPS)) \
-o $$@
endif