summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk.sample3
-rw-r--r--mk/validate-settings.mk2
2 files changed, 2 insertions, 3 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 6ac5c56b5d..17fb9a1e56 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -30,8 +30,7 @@
# A development build, working on the stage 2 compiler:
#BuildFlavour = devel2
-GhcLibWays = v
-DYNAMIC_BY_DEFAULT = NO
+GhcLibWays = $(if $(filter $(DYNAMIC_BY_DEFAULT),YES),dyn,v)
# Uncomment this to get prettier build output.
# Please use V = 1 when reporting GHC bugs.
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index 9eeb488572..bd582ff828 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -29,7 +29,7 @@ GhcLibHcOpts += -O -dcore-lint
# We define DefaultFastGhcLibWays in this style so that the value is
# correct even if the user alters DYNAMIC_BY_DEFAULT
-DefaultFastGhcLibWays = $(if $(filter $(DYNAMIC_BY_DEFAULT),YES),v dyn,v)
+DefaultFastGhcLibWays = $(if $(filter $(DYNAMIC_BY_DEFAULT),YES),dyn,v)
ifeq "$(ValidateSpeed)" "FAST"
GhcLibWays = $(DefaultFastGhcLibWays)