X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FMakefile;h=5598be659004381071fcc5525ed58e6b08425b2d;hb=c29b47b74c7625c66d81405907e303ea66bdb061;hp=d818790d7318b8cca60935a2afc0d047070db127;hpb=8edb76687dc6aec821131861ce81f6b6d8293299;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index d818790..5598be6 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -77,12 +77,13 @@ CONFIGURE_FLAGS_STAGE1 += --flags=-ghci ifeq "$(GhcWithInterpreter)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=ghci +ifeq "$(BuildSharedLibs)" "YES" +CONFIGURE_FLAGS_STAGE2 += --enable-shared # If we are going to use dynamic libraries instead of .o files for ghci, # we will need to always retain CAFs in the compiler. # ghci/keepCAFsForGHCi contains a GNU C __attribute__((constructor)) # function which sets the keepCAFs flag for the RTS before any Haskell # code is run. -ifeq "$(GhcBuildDylibs)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=dynlibs else CONFIGURE_FLAGS_STAGE2 += --flags=-dynlibs