From 9cb7f4755c5099148bea64bf34b1af2da462b158 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 29 Aug 2006 09:37:35 +0000 Subject: [PATCH] Don't trust "ln -sf" to do the right thing (it doesn't on Solaris) Patch from: Roman Leshchinskiy --- compiler/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.10.4