diff options
author | Duncan Coutts <duncan@well-typed.com> | 2009-04-29 15:15:53 +0000 |
---|---|---|
committer | Duncan Coutts <duncan@well-typed.com> | 2009-04-29 15:15:53 +0000 |
commit | 442f06cc8f9f729d33a8de3aa14cdaf80545808e (patch) | |
tree | c8e4ea7bc1c4ba464f8482db53608edb962dec75 /ghc.mk | |
parent | 7f995ef4d41815cd2d9fab774a638b5493d33910 (diff) | |
download | haskell-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.mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |