summaryrefslogtreecommitdiff
path: root/libffi/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/ghc.mk')
-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 && \