summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2009-04-29 15:15:53 +0000
committerDuncan Coutts <duncan@well-typed.com>2009-04-29 15:15:53 +0000
commit442f06cc8f9f729d33a8de3aa14cdaf80545808e (patch)
treec8e4ea7bc1c4ba464f8482db53608edb962dec75 /ghc.mk
parent7f995ef4d41815cd2d9fab774a638b5493d33910 (diff)
downloadhaskell-442f06cc8f9f729d33a8de3aa14cdaf80545808e.tar.gz
Build library packages as shared libs
when we configure ghc with --enable-shared
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index c9b280984a..f49ca13686 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -320,8 +320,11 @@ 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