summaryrefslogtreecommitdiff
path: root/testsuite/mk/boilerplate.mk
diff options
context:
space:
mode:
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"