From: Simon Marlow Date: Tue, 29 Aug 2006 09:37:35 +0000 (+0000) Subject: Don't trust "ln -sf" to do the right thing (it doesn't on Solaris) X-Git-Tag: Before_FC_branch_merge~110 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=9cb7f4755c5099148bea64bf34b1af2da462b158 Don't trust "ln -sf" to do the right thing (it doesn't on Solaris) Patch from: Roman Leshchinskiy --- diff --git a/compiler/Makefile b/compiler/Makefile index 2a014b9..69fd1fd 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -124,7 +124,8 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" done else for i in */*hi-boot*; do \ - $(LN_S) -f ../../$$i stage$(stage)/$$i || true ; \ + ($(RM) -f stage$(stage)/$$i \ + && $(LN_S) ../../$$i stage$(stage)/$$i) || true ; \ done endif endif @@ -708,7 +709,7 @@ $(odir)/ghc-inplace : $(GHC_PROG) chmod 755 $@ ghc-inplace : stage1/ghc-inplace - $(LN_S) -f $< $@ + $(RM) -f $@ && $(LN_S) $< $@ ifeq "$(stage)" "1" CLEAN_FILES += ghc-inplace