X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FMakefile;h=12e50eb711652fba7fa76490c38424afd154e968;hb=ab3a88f2dc64677df8fb92dacef47570ac3c5023;hp=9a1dee65998839d5eb5cd657354ddd0598bea117;hpb=72a42bd77936ad0edd7426a33b323e60323e9684;p=ghc-hetmet.git diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 9a1dee6..12e50eb 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -512,10 +512,23 @@ primop-usage.hs-incl: prelude/primops.txt ifeq "$(stage)" "1" SRC_HC_OPTS += -i$(GHC_LIB_COMPAT_DIR) SRC_LD_OPTS += -L$(GHC_LIB_COMPAT_DIR) -lghccompat -SRC_MKDEPENDHS_OPTS += -optdep--exclude-module=Compat.RawSystem + +ifeq "$(Windows)" "YES" +# not very nice, but required for -lghccompat on Windows +SRC_LD_OPTS += -lshell32 +endif + +# This is horrible. We ought to be able to omit the entire directory +# from mkDependHS. +SRC_MKDEPENDHS_OPTS += \ + -optdep--exclude-module=Compat.RawSystem \ + -optdep--exclude-module=Data.Version \ + -optdep--exclude-module=Distribution.Package \ + -optdep--exclude-module=Distribution.InstalledPackageInfo \ + -optdep--exclude-module=Distribution.Package endif -SRC_LD_OPTS += -no-link-chk +SRC_LD_OPTS += -no-link-chk # ----------------------------------------------------------------------------- # create ghc-inplace, a convenient way to run ghc from the build tree...