summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-29 17:47:32 +0100
committerIan Lynagh <igloo@earth.li>2012-06-29 17:47:32 +0100
commit6c29fad6a1ab20e8cfed5ad4af406a821ee74291 (patch)
treec18bca8bc4770a93419699d5fa6ba5c6c7098bc2 /ghc.mk
parent5ddc841a547d2d37428280b04c071a1d4b83e10d (diff)
downloadhaskell-6c29fad6a1ab20e8cfed5ad4af406a821ee74291.tar.gz
Don't build the ghc DLL on Windows; works around trac #5987
We also don't build DLLs for the dph-lifted-* packages as they depend on ghc.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 903cf1f52b..fc7d44b59e 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -528,6 +528,18 @@ $(error Unknown integer library: $(INTEGER_LIBRARY))
endif
endif
+# ----------------------------------------
+# Workarounds for problems building DLLs on Windows
+
+ifeq "$(TargetOS_CPP)" "mingw32"
+# We don't build the GHC package the dyn way on Windows, so
+# we can't build these packages the dyn way either. See trac #5987
+libraries/dph/dph-lifted-base_dist-install_EXCLUDED_WAYS := dyn
+libraries/dph/dph-lifted-boxed_dist-install_EXCLUDED_WAYS := dyn
+libraries/dph/dph-lifted-copy_dist-install_EXCLUDED_WAYS := dyn
+libraries/dph/dph-lifted-vseg_dist-install_EXCLUDED_WAYS := dyn
+endif
+
# ----------------------------------------------
# Checking packages with 'cabal check'