summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-07-12 15:38:37 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-07-12 15:38:37 +0100
commit73b98445b3ad268cdd09037d497d986bfc323825 (patch)
tree5409c88f41501f5b87b0e72e7c5b4edb40e7cce0 /ghc.mk
parentaed43f7a1ed96277e9c14c6ef643eb134d5bf7f6 (diff)
downloadhaskell-73b98445b3ad268cdd09037d497d986bfc323825.tar.gz
make sure libraries/dph/ghc.mk is included after the other DPH ghc.mk
files, so that it can refer to variables defined there. (necessary, but perhaps not sufficient, to fix the DPH build bugs)
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 27c78861da..46e0d94031 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -616,7 +616,10 @@ endif
# ----------------------------------------------
# Actually include all the sub-ghc.mk's
-include $(patsubst %, %/ghc.mk, $(BUILD_DIRS))
+# BUILD_DIRS_EXTRA needs to come after BUILD_DIRS, because stuff in
+# libraries/dph/ghc.mk refers to stuff defined earlier, in particular
+# things like $(libraries/dph/dph-base_dist-install_GHCI_LIB)
+include $(patsubst %, %/ghc.mk, $(BUILD_DIRS) $(BUILD_DIRS_EXTRA))
# A useful pseudo-target (must be after the include above, because it needs
# the value of things like $(libraries/base_dist-install_v_LIB).