summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-15 01:53:13 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-15 01:53:13 +0100
commit41e5229c297f9ecad95dbbeeedf9feacdce39751 (patch)
tree2789476386357fbfbdd406c1342fb762b2b81758 /rules
parent192c7b74eb439221c20203c603e5b3c5a9d98cc3 (diff)
downloadhaskell-41e5229c297f9ecad95dbbeeedf9feacdce39751.tar.gz
Link to the right RTS whenever we build a .dll on Windows
When GHCi makes temporary DLLs, those also need to be linked against the right RTS, or we won't be able to load them.
Diffstat (limited to 'rules')
-rw-r--r--rules/distdir-way-opts.mk12
1 files changed, 0 insertions, 12 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk
index 23fdf7b20d..ecd3aa1b71 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -140,18 +140,6 @@ $1_$2_$3_GHC_LD_OPTS += \
else ifeq "$$(TargetOS_CPP)" "darwin"
$1_$2_$3_GHC_LD_OPTS += -optl-Wl,-headerpad_max_install_names
endif
-
-# This is a rather ugly hack to fix dynamically linked GHC on Windows.
-# If GHC is linked with -threaded, then it links against libHSrts_thr.
-# But if base is linked against libHSrts, then both end up getting
-# loaded, and things go wrong. We therefore link the libraries with the
-# same RTS flags that we link GHC with.
-ifeq "$$(GhcThreaded)" "YES"
-$1_$2_$3_GHC_LD_OPTS += -threaded
-endif
-ifeq "$$(GhcDebugged)" "YES"
-$1_$2_$3_GHC_LD_OPTS += -debug
-endif
endif
endif