summaryrefslogtreecommitdiff
path: root/rules/build-package-way.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-07-11 14:32:47 +0100
committerSimon Marlow <marlowsd@gmail.com>2012-07-11 14:33:05 +0100
commit301b37255fb9ea3abd634cf9caf774c6dab647b7 (patch)
tree5462ea01a224213d73274f48aef8dc79bc9f2aeb /rules/build-package-way.mk
parent2903754f04906d96a5334da3be22d22ffe840805 (diff)
downloadhaskell-301b37255fb9ea3abd634cf9caf774c6dab647b7.tar.gz
Link the extra-libraries when making a .so for a package (#7062)
I don't think I completely understand what's going on here, but this does seem to fix it, and morally it seems like the right thing.
Diffstat (limited to 'rules/build-package-way.mk')
-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 176dc9bd83..cf89e1e823 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -76,6 +76,7 @@ else
$$($1_$2_$3_LIB) : $$($1_$2_$3_ALL_OBJS) $$(ALL_RTS_LIBS) $$($1_$2_$3_DEPS_LIBS)
$$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) $$($1_$2_$3_ALL_OBJS) \
-shared -dynamic -dynload deploy \
+ $$(addprefix -l,$$($1_$2_EXTRA_LIBRARIES)) \
-dylib-install-name $(ghclibdir)/`basename "$$@" | sed 's/^libHS//;s/[-]ghc.*//'`/`basename "$$@"` \
-no-auto-link-packages \
-o $$@