Build library packages as shared libs
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 15d0b35..f49ca13 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -308,12 +308,23 @@ PACKAGES += \
        syb \
        template-haskell \
        base3-compat \
-       Cabal
+       Cabal \
+       mtl \
+       utf8-string
+
+ifneq "$(Windows)" "YES"
+PACKAGES += terminfo
+endif
+
+PACKAGES += haskeline
 
 BOOT_PKGS = Cabal hpc extensible-exceptions
 
-# The actual .a files: needed for dependencies.
+# The actual .a and .so/.dll files: needed for dependencies.
 ALL_LIBS  = $(foreach lib,$(PACKAGES),$(libraries/$(lib)_dist-install_v_LIB))
+ifeq "$(BuildSharedLibs)" "YES"
+ALL_LIBS += $(foreach lib,$(PACKAGES),$(libraries/$(lib)_dist-install_dyn_LIB))
+endif
 BOOT_LIBS = $(foreach lib,$(BOOT_PKGS),$(libraries/$(lib)_dist-boot_v_LIB))
 
 OTHER_LIBS = libffi/libHSffi.a libffi/HSffi.o