summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2007-07-23 13:41:24 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2007-07-23 13:41:24 +0000
commit7cf591f6971ba96d01ec4afc453fa4ac498d759a (patch)
tree3828146288f40b56b2d5a897b3a9110a8dac8186
parent458a0d4354ff93fd9ea5c5ce669e9368e43a982f (diff)
downloadhaskell-7cf591f6971ba96d01ec4afc453fa4ac498d759a.tar.gz
Translate dyn in GhcLibWays into --enable-shared for Cabal
-rw-r--r--libraries/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/libraries/Makefile b/libraries/Makefile
index 0c845c9cf4..ffb1a90968 100644
--- a/libraries/Makefile
+++ b/libraries/Makefile
@@ -98,6 +98,11 @@ CONFIGURE_OPTS += --enable-library-profiling
CONFIGURE_STAMP_EXTRAS := $(CONFIGURE_STAMP_EXTRAS)-profiling
endif
+ifneq "$(findstring $(space)dyn$(space), $(space)$(GhcLibWays)$(space))" ""
+CONFIGURE_OPTS += --enable-shared
+CONFIGURE_STAMP_EXTRAS := $(CONFIGURE_STAMP_EXTRAS)-shared
+endif
+
ifeq "$(SplitObjs)" "YES"
CONFIGURE_OPTS += --enable-split-objs
CONFIGURE_STAMP_EXTRAS := $(CONFIGURE_STAMP_EXTRAS)-splitting