X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=981fec0d8c52026d82e73e0e9a79cbcd4927f3bd;hb=4d401b9d0514c93efc296ac99f0e89e4514996b7;hp=a7ae8f417473fd7ebe7305e537da57ffac69fbd4;hpb=d9dc5b442d05fb1f05e6846c3f3413b6168758f5;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index a7ae8f4..981fec0 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,28 @@ bootstrap2 : stage1 bootstrap3 : bootstrap2 $(MAKE) stage3 +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +ifneq "$(WhatGccIsCalled)" "" +all :: stamp.inplace-gcc-lib + +.PHONY: stamp.inplace-gcc-lib + +# This is a hack to make Cabal able to find ld when we run tests with +# the inplace ghc. We should probably install all the gcc stuff in our +# tree somewhere, and then have install copy it from there rather than +# from the filesystem. +stamp.inplace-gcc-lib: + $(RM) -r compiler/gcc-lib + mkdir compiler/gcc-lib + cp $(GccDir)ld.exe compiler/gcc-lib + touch $@ + +clean :: + $(RM) -r compiler/gcc-lib + $(RM) -f inplace-gcc-lib +endif +endif + all :: bootstrap # -----------------------------------------------------------------------------