X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2FMakefile;h=ffb1a90968c8babe08984946ab6582b62294c312;hb=7cf591f6971ba96d01ec4afc453fa4ac498d759a;hp=0c845c9cf4b1db8aea84b3f2c75e551ed6eecc2c;hpb=8fce302bbaf3d0696ffa5ce98013e47ba6ba6c6c;p=ghc-hetmet.git diff --git a/libraries/Makefile b/libraries/Makefile index 0c845c9..ffb1a90 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