Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/2d634b8a548180c2e2e085175f225168851099ee

>---------------------------------------------------------------

commit 2d634b8a548180c2e2e085175f225168851099ee
Author: Ian Lynagh <[email protected]>
Date:   Wed Nov 30 02:24:33 2011 +0000

    Fix libffi depfile creation on Windows: Use -MD rather than -MMD

>---------------------------------------------------------------

 libffi/ghc.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index d777c78..4b35f0a 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 && \



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to