summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-01-13 00:21:18 -0600
committerAustin Seipp <austin@well-typed.com>2014-01-13 00:21:18 -0600
commit4af1e76c701a7698ebd9b5ca3fb1394dd8b56c8d (patch)
tree8995a7376a4d229e2a519abec32ebebf6c47317d /mk
parent6494de1f58f9352c809cdd722c9b0ae7f462ccde (diff)
downloadhaskell-4af1e76c701a7698ebd9b5ca3fb1394dd8b56c8d.tar.gz
Add Windows to NoSharedLibsPlatformList
We're punting on full -dynamic and -dynamic-too support for Windows right now, since it's still unstable. Also, ensure "Support dynamic-too" in `ghc --info` is set to "NO" for Cabal. See issues #7134, #8228, and #5987 Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in19
1 files changed, 4 insertions, 15 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index f61ecc0cb5..59d48c4ccf 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -94,22 +94,11 @@ else
TargetElf = YES
endif
-# Currently, on Windows, we artificially limit the unfolding creation
-# threshold to minimize the number of exported symbols on Windows
-# platforms in the stage2 DLL. This avoids a hard limit of 2^16
-# exported symbols in the windows dynamic linker.
-#
-# This is a pitifully low threshold (the default is 750,) but it
-# reduced the symbol count by about ~7,000, bringing us back under the
-# limit (for now.)
-#
-# See #5987
-ifeq "$(TargetOS_CPP)" "mingw32"
-GhcStage2HcOpts += -funfolding-creation-threshold=100
-endif
-
# Some platforms don't support shared libraries
-NoSharedLibsPlatformList = arm-unknown-linux powerpc-unknown-linux
+NoSharedLibsPlatformList = arm-unknown-linux \
+ powerpc-unknown-linux \
+ x86_64-unknown-mingw32 \
+ i386-unknown-mingw32
ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
NoSharedLibsPlatformList += i386-unknown-solaris2