From: Ian Lynagh Date: Sat, 21 Jul 2007 20:00:43 +0000 (+0000) Subject: Hack: copy ld.exe to compiler/gcc-lib so Cabal can find it X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=30091f98d69664e7f748639749938dc3a0d5821e;p=ghc-hetmet.git Hack: copy ld.exe to compiler/gcc-lib so Cabal can find it --- 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 # -----------------------------------------------------------------------------