summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-16 22:00:57 +0000
committerIan Lynagh <igloo@earth.li>2008-09-16 22:00:57 +0000
commitc7ad7938dc1d27a2471b0b803ac3e70102414a3d (patch)
tree6589c5d366cf5c6c7504311ad535a09b533ce83e /mk/config.mk.in
parent704bbd5482ed6781bc436d1a28d558713dd13c59 (diff)
downloadhaskell-c7ad7938dc1d27a2471b0b803ac3e70102414a3d.tar.gz
Use the new -optdep flag replacements when building with >= GHC 6.9
Fix building the HEAD with itself
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 068add51a8..22c6f921c5 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -922,6 +922,7 @@ ifneq "$(findstring YES, $(UseStage1) $(BootingFromHc))" ""
# some variables appropriately:
HC =$(GHC_STAGE1)
MKDEPENDHS =$(GHC_STAGE1)
+USE_NEW_MKDEPEND_FLAGS = YES
GhcVersion = @ProjectVersion@
GhcPatchLevel = @ProjectPatchLevel@
# oops, these are wrong:
@@ -934,8 +935,14 @@ ghc_ge_609 = YES
else # not UseStage1 or BootingFromHc
+# Some useful GHC version predicates:
+ghc_ge_605 = @ghc_ge_605@
+ghc_ge_607 = @ghc_ge_607@
+ghc_ge_609 = @ghc_ge_609@
+
HC = @WithHc@
MKDEPENDHS = $(GHC)
+USE_NEW_MKDEPEND_FLAGS = $(ghc_ge_609)
GhcVersion = @GhcVersion@
GhcPatchLevel = @GhcPatchLevel@
GhcMajVersion = @GhcMajVersion@
@@ -951,11 +958,6 @@ GhcMinVersion = @GhcMinVersion@
#
BOOTSTRAPPING_PACKAGE_CONF_HC_OPTS =$(if $(findstring inplace, $(HC)),,-package-conf $(BOOTSTRAPPING_CONF))
BOOTSTRAPPING_PACKAGE_CONF_MKDEPENDHS_OPTS =$(if $(findstring inplace, $(MKDEPENDHS)),,-package-conf $(BOOTSTRAPPING_CONF))
-
-# Some useful GHC version predicates:
-ghc_ge_605 = @ghc_ge_605@
-ghc_ge_607 = @ghc_ge_607@
-ghc_ge_609 = @ghc_ge_609@
endif
# Canonicalised ghc version number, used for easy (integer) version