summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/Makefile')
-rw-r--r--ghc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/Makefile b/ghc/Makefile
index 8c4e2c9608..b1a14d38d6 100644
--- a/ghc/Makefile
+++ b/ghc/Makefile
@@ -61,6 +61,10 @@ ifeq "$(GhcThreaded)" "YES"
CONFIGURE_FLAGS_STAGE2 += --ghc-option=-threaded
endif
+ifeq "$(BuildSharedLibs)" "YES"
+CONFIGURE_FLAGS_STAGE2 += --ghc-option=-dynamic
+endif
+
CONFIGURE_FLAGS_STAGE3 = $(CONFIGURE_FLAGS_STAGE2)
CONFIGURE_FLAGS_STAGE1 += $(USE_BOOT_CONFIGURE_FLAGS)