Comment only in IfaceENv
[ghc-hetmet.git] / ghc / Makefile
index 8c4e2c9..282ffe7 100644 (file)
@@ -13,6 +13,9 @@ else
 INSTALL_FLAGS = --enable-shell-wrappers
 endif
 
+# Don't strip the inplace versions, we might need to debug them
+INPLACE_INSTALL_FLAGS += --disable-executable-stripping
+
 boot:: boot.stage.$(stage)
 
 all:: build.stage.$(stage)
@@ -61,6 +64,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)
@@ -98,6 +105,7 @@ build.stage.%:
                           '$$prefix/html'                                 \
                           '$$prefix/haddock'                              \
                           --distpref dist-stage$*                         \
+                          $(INPLACE_INSTALL_FLAGS)                        \
                           $(INSTALL_FLAGS)
 
 # XXX For now we always install the stage 2 compiler