summaryrefslogtreecommitdiff
path: root/rules/build-package-way.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-04-06 23:05:29 +0100
committerIan Lynagh <ian@well-typed.com>2013-04-07 11:39:35 +0100
commit444119fbb78aef88450bc51b54429942f8ef3cbf (patch)
treebb2a46d5ac319bdfbf2ae31ebcbff5a2ed2ab96d /rules/build-package-way.mk
parent8c2f2803e4d76cd8a6e579f55a023d7e132d479b (diff)
downloadhaskell-444119fbb78aef88450bc51b54429942f8ef3cbf.tar.gz
Add a check that the Windows DLL split is OK; fixes #7780
Diffstat (limited to 'rules/build-package-way.mk')
-rw-r--r--rules/build-package-way.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 724a698666..9277b551b2 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -56,6 +56,17 @@ $1_$2_$3_ALL_OBJS = $$($1_$2_$3_HS_OBJS) $$($1_$2_$3_NON_HS_OBJS)
ifeq "$3" "dyn"
+ifneq "$$($1_$2_dll0_MODULES)" ""
+$$($1_$2_$3_LIB) : $1/$2/dll-split.stamp
+ifneq "$$($1_$2_$3_LIB0)" ""
+$$($1_$2_$3_LIB0) : $1/$2/dll-split.stamp
+endif
+endif
+
+$1/$2/dll-split.stamp: $$($1_$2_depfile_haskell) inplace/bin/dll-split$$(exeext)
+ inplace/bin/dll-split $$< "$$($1_$2_dll0_START_MODULE)" "$$($1_$2_dll0_MODULES)"
+ touch $$@
+
# Link a dynamic library
# On windows we have to supply the extra libs this one links to when building it.
ifeq "$$(HostOS_CPP)" "mingw32"