Commit e8fcdc34 authored by Clemens Fruhwirth's avatar Clemens Fruhwirth
Browse files

Add package dependencies to link pass when building ghc package (required for windows DLL build)

parent 3d62f93c
......@@ -842,6 +842,7 @@ PACKAGE = ghc
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)))'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment