summaryrefslogtreecommitdiff
path: root/rules/build-package.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-22 23:36:53 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-22 23:56:38 +0000
commite2249ff2c60fdade47489e7eb537a82fe397bd00 (patch)
tree46fe054a7f2e04dbfa847228723b87c444e1fb4f /rules/build-package.mk
parenta49e9cf3ff5af48c011c7ade9338b49b667b2201 (diff)
downloadhaskell-e2249ff2c60fdade47489e7eb537a82fe397bd00.tar.gz
Make the build system use -dynamic-too if both way v and dyn are being built
Diffstat (limited to 'rules/build-package.mk')
-rw-r--r--rules/build-package.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/rules/build-package.mk b/rules/build-package.mk
index 46150e34a2..47ef22c89d 100644
--- a/rules/build-package.mk
+++ b/rules/build-package.mk
@@ -75,6 +75,15 @@ else
$1_$2_WAYS = $$(filter-out $$($1_$2_EXCLUDED_WAYS),$$(GhcLibWays))
endif
+$1_$2_DYNAMIC_TOO = NO
+ifneq "$$(DYNAMIC_TOO)" "NO"
+ifneq "$$(filter v,$$($1_$2_WAYS))" ""
+ifneq "$$(filter dyn,$$($1_$2_WAYS))" ""
+$1_$2_DYNAMIC_TOO = YES
+endif
+endif
+endif
+
# We must use a different dependency file if $(GhcLibWays) changes, so
# encode the ways into the name of the file.
$1_$2_WAYS_DASHED = $$(subst $$(space),,$$(patsubst %,-%,$$(strip $$($1_$2_WAYS))))