summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-11-30 02:24:33 +0000
committerIan Lynagh <igloo@earth.li>2011-11-30 02:24:33 +0000
commit2d634b8a548180c2e2e085175f225168851099ee (patch)
tree94d34cce74846f4fb435d8bfe3a7c345b546ff5f /libffi
parentaee8fe257668e4eeb3ef28f2c6c69e8f973e9670 (diff)
downloadhaskell-2d634b8a548180c2e2e085175f225168851099ee.tar.gz
Fix libffi depfile creation on Windows: Use -MD rather than -MMD
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ghc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index d777c7877a..4b35f0a6a7 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -55,6 +55,12 @@ $(libffi_STAMP_CONFIGURE):
# will use cygwin symbolic links which cannot be read by mingw gcc.
chmod +x libffi/ln
+ # We need to use -MMD rather than -MD, as otherwise we get paths
+ # like c:/... in the dependency files on Windows, and the extra
+ # colons break make
+ mv libffi/build/Makefile.in libffi/build/Makefile.in.orig
+ sed "s/-MD/-MMD/" < libffi/build/Makefile.in.orig > libffi/build/Makefile.in
+
# Because -Werror may be in SRC_CC_OPTS/SRC_LD_OPTS, we need to turn
# warnings off or the compilation of libffi might fail due to warnings
cd libffi && \