summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/config.mk.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 41cd71ca1f..57f0325b64 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -144,6 +144,13 @@ endif
# cabal-install's that are in the wild don't handle it properly.
DYNAMIC_BY_DEFAULT = NO
+# Try enabling on ARM to work around persistent linking issues.
+ifeq "$(TargetArch_CPP)" "aarch64"
+DYNAMIC_BY_DEFAULT = YES
+else ifeq "$(TargetArch_CPP)" "arm"
+DYNAMIC_BY_DEFAULT = YES
+endif
+
# If building both v and dyn ways, then use -dynamic-too to build them.
# This makes the build faster.
DYNAMIC_TOO = YES