summaryrefslogtreecommitdiff
path: root/rules/build-dependencies.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-05-09 13:05:11 +0000
committerIan Lynagh <igloo@earth.li>2010-05-09 13:05:11 +0000
commitc24af7168babfe2a7c231c1c7a61b74d952aee84 (patch)
tree632be3dc50e4acf5b1dab81af9a20896468f2640 /rules/build-dependencies.mk
parent7eb456b97c5a9911981afa172acf9ef50b75f9fa (diff)
downloadhaskell-c24af7168babfe2a7c231c1c7a61b74d952aee84.tar.gz
Don't include inter-package dependencies when compiling with stage 0; #4031
This fixes a problem when building with GHC 6.12 on Windows, where dependencies on stage 0 (bootstrapping compiler) packages have absolute paths c:/ghc/..., and make gets confused by the colon.
Diffstat (limited to 'rules/build-dependencies.mk')
-rw-r--r--rules/build-dependencies.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index 7a058034b3..6ebc7ef711 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -10,14 +10,20 @@
#
# -----------------------------------------------------------------------------
-define build-dependencies # args: $1 = dir, $2 = distdir
+define build-dependencies
+# $1 = dir
+# $2 = distdir
+# $3 = GHC stage to use (0 == bootstrapping compiler)
$1_$2_depfile_haskell = $$($1_$2_depfile_base).haskell
$1_$2_depfile_c_asm = $$($1_$2_depfile_base).c_asm
$1_$2_C_FILES_DEPS = $$(filter-out $$($1_$2_C_FILES_NODEPS),$$($1_$2_C_FILES))
-$1_$2_MKDEPENDHS_FLAGS = -include-pkg-deps -dep-makefile $$($1_$2_depfile_haskell).tmp $$(foreach way,$$(filter-out v,$$($1_$2_WAYS)),-dep-suffix $$(way))
+$1_$2_MKDEPENDHS_FLAGS = -dep-makefile $$($1_$2_depfile_haskell).tmp $$(foreach way,$$(filter-out v,$$($1_$2_WAYS)),-dep-suffix $$(way))
+ifneq "$3" "0"
+$1_$2_MKDEPENDHS_FLAGS += -include-pkg-deps
+endif
ifneq "$$($1_$2_NO_BUILD_DEPS)" "YES"