From e8fcdc34bb2dfddd3dcfe3b027328bb45c9a10e6 Mon Sep 17 00:00:00 2001 From: Clemens Fruhwirth Date: Tue, 1 Jan 2008 15:21:01 +0000 Subject: [PATCH] Add package dependencies to link pass when building ghc package (required for windows DLL build) --- compiler/Makefile | 1 + 1 file changed, 1 insertion(+) 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)))' -- 1.7.10.4