projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f70501
)
Don't trust "ln -sf" to do the right thing (it doesn't on Solaris)
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 29 Aug 2006 09:37:35 +0000
(09:37 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 29 Aug 2006 09:37:35 +0000
(09:37 +0000)
Patch from: Roman Leshchinskiy
compiler/Makefile
patch
|
blob
|
history
diff --git
a/compiler/Makefile
b/compiler/Makefile
index
2a014b9
..
69fd1fd
100644
(file)
--- 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