Index: newlib/libc/sys/Makefile.am |
diff --git a/newlib/libc/sys/Makefile.am b/newlib/libc/sys/Makefile.am |
index b6106a6cbf141d966d8007ca34e95c8a224ecb76..06a9fa72e317b206a94efc606758a91e0949af3d 100644 |
--- a/newlib/libc/sys/Makefile.am |
+++ b/newlib/libc/sys/Makefile.am |
@@ -22,10 +22,10 @@ endif # USE_LIBTOOL |
$(sys_dir)/libsys.$(aext): ; @true |
-$(CRT0): $(sys_dir)/$(CRT0) |
+$(CRT0): $(wildcard $(sys_dir)/$(CRT0)) |
rm -f $@ |
- ln $(sys_dir)/$(CRT0) $@ >/dev/null 2>/dev/null \ |
- || cp $(sys_dir)/$(CRT0) $@ |
+ if test -f $(sys_dir)/$(CRT0); then ln $(sys_dir)/$(CRT0) $@ >/dev/null 2>/dev/null \ |
+ || cp $(sys_dir)/$(CRT0) $@; fi |
$(sys_dir)/$(CRT0): ; @true |