summaryrefslogtreecommitdiff
path: root/ghc/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/lib')
-rw-r--r--ghc/lib/compat/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/lib/compat/Makefile b/ghc/lib/compat/Makefile
index 943b56ce6d..95277c4809 100644
--- a/ghc/lib/compat/Makefile
+++ b/ghc/lib/compat/Makefile
@@ -69,8 +69,10 @@ SRC_MKDEPENDHS_OPTS += \
-optdep--exclude-module=Language.Haskell.Extension
endif
-# Some explicit dependencies
+# Some explicit dependencies, needed because ghc -M can't discover the
+# true dependencies of these stub files.
System/Directory/Internals.$(way_)o : $(FPTOOLS_TOP)/libraries/base/System/Directory/Internals.hs
+Distribution/Compat/FilePath.$(way_) : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/Compat/FilePath.hs
Distribution/Compat/ReadP.$(way_) : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/Compat/ReadP.hs
Distribution/GetOpt.$(way_)o : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/GetOpt.hs
Distribution/InstalledPackageInfo.$(way_)o : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/InstalledPackageInfo.hs