X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FMakefile;h=04c7778ba9e9dbeb097de2874fad52f96f1e0857;hp=9c8da7dc899115463ef3892afad22e14d89a3805;hb=5123ae93cfc5cdfcecc84340a9517580ad900d64;hpb=5d536b42c88dbe9523c4b0c799a0e46c2d984aa6 diff --git a/compiler/Makefile b/compiler/Makefile index 9c8da7d..04c7778 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -276,6 +276,11 @@ ifeq "$(RelocatableBuild)" "YES" else @echo "cRelocatableBuild = False" >> $(CONFIG_HS) endif +ifeq "$(UseLibFFI)" "YES" + @echo "cLibFFI = True" >> $(CONFIG_HS) +else + @echo "cLibFFI = False" >> $(CONFIG_HS) +endif @echo done. CLEAN_FILES += $(CONFIG_HS) @@ -842,6 +847,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)))'