diff options
author | Clemens Fruhwirth <clemens@endorphin.org> | 2007-07-23 13:41:24 +0000 |
---|---|---|
committer | Clemens Fruhwirth <clemens@endorphin.org> | 2007-07-23 13:41:24 +0000 |
commit | 7cf591f6971ba96d01ec4afc453fa4ac498d759a (patch) | |
tree | 3828146288f40b56b2d5a897b3a9110a8dac8186 | |
parent | 458a0d4354ff93fd9ea5c5ce669e9368e43a982f (diff) | |
download | haskell-7cf591f6971ba96d01ec4afc453fa4ac498d759a.tar.gz |
Translate dyn in GhcLibWays into --enable-shared for Cabal
-rw-r--r-- | libraries/Makefile | 5 |
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 |