summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2008-07-24 15:49:25 +0000
committerSimon Marlow <marlowsd@gmail.com>2008-07-24 15:49:25 +0000
commitc29b47b74c7625c66d81405907e303ea66bdb061 (patch)
treec7ae65b7c2714698d465f124ae504f7d533df049 /ghc/Makefile
parent8edb76687dc6aec821131861ce81f6b6d8293299 (diff)
downloadhaskell-c29b47b74c7625c66d81405907e303ea66bdb061.tar.gz
add --enable-shared to configure, and $(BuildSharedLibs) to the build system
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)