From: Clemens Fruhwirth Date: Tue, 1 Jan 2008 15:21:01 +0000 (+0000) Subject: Add package dependencies to link pass when building ghc package (required for windows... X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e8fcdc34bb2dfddd3dcfe3b027328bb45c9a10e6;p=ghc-hetmet.git Add package dependencies to link pass when building ghc package (required for windows DLL build) --- diff --git a/compiler/Makefile b/compiler/Makefile index 9c8da7d..db21ae8 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -842,6 +842,7 @@ PACKAGE = ghc HIERARCHICAL_LIB = NO VERSION = $(ProjectVersion) PKG_DEPENDS += base haskell98 +LIB_LD_OPTS += $(foreach pkg,$(PKG_DEPENDS),-package $(pkg)) # We have to expand each package dependency with its version, which we # can do by calling "ghc-pkg list $pkg --simple-output". PACKAGE_CPP_OPTS += -DPKG_DEPENDS='$(foreach pkg,$(PKG_DEPENDS),$(shell $(GHC_PKG_INPLACE) latest --global $(pkg)))'