summaryrefslogtreecommitdiff
path: root/testsuite/mk/boilerplate.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-14 16:56:23 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-15 00:49:24 +0000
commit6215d4c858c1502c6c1929521fdd7fd00f16bb2d (patch)
tree4137b2064914fe23306a68219127dd8347075b86 /testsuite/mk/boilerplate.mk
parentf3da8ce8a034f1c0e3dc9aa30faf721fea2ec70b (diff)
downloadhaskell-6215d4c858c1502c6c1929521fdd7fd00f16bb2d.tar.gz
Fix tests for dynamic ghc
Diffstat (limited to 'testsuite/mk/boilerplate.mk')
-rw-r--r--testsuite/mk/boilerplate.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk
index f9ed52ee0f..e5bf164391 100644
--- a/testsuite/mk/boilerplate.mk
+++ b/testsuite/mk/boilerplate.mk
@@ -164,6 +164,16 @@ ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
include $(ghc-config-mk)
endif
+ifeq "$(GhcDynamic)" "YES"
+ghcThWayFlags = -dynamic
+ghciWayFlags = -dynamic
+ghcPluginWayFlags = -dynamic
+else
+ghcThWayFlags = -static
+ghciWayFlags = -static
+ghcPluginWayFlags = -static
+endif
+
# -----------------------------------------------------------------------------
ifeq "$(HostOS)" "mingw32"