Index: newlib/Makefile.in |
diff --git a/newlib/Makefile.in b/newlib/Makefile.in |
index 468ae9985d8140bd77bd9061917f7e6cdd19135a..1435770ec9e0fc9ed654839a89435c47a47e3c5a 100644 |
--- a/newlib/Makefile.in |
+++ b/newlib/Makefile.in |
@@ -387,7 +387,7 @@ AR_FLAGS = rc |
@USE_LIBTOOL_FALSE@ libc.a |
noinst_DATA = stmp-targ-include |
-toollib_DATA = $(CRT0) $(CRT1) |
+toollib_DATA = $(wildcard $(CRT0)) $(CRT1) |
# The functions ldexp, frexp and modf are traditionally supplied in |
# both libc.a and libm.a. We build them in libm.a and copy them over, |
@@ -923,10 +923,10 @@ uninstall-am: uninstall-toollibDATA uninstall-toollibLIBRARIES \ |
@USE_LIBTOOL_FALSE@libm/libm.a: ; @true |
-crt0.o: $(CRT0_DIR)$(CRT0) |
+crt0.o: $(wildcard $(CRT0_DIR)$(CRT0)) |
rm -f $@ |
- ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \ |
- || cp $(CRT0_DIR)$(CRT0) $@ |
+ if test -f $(CRT0_DIR)$(CRT0); then ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \ |
+ || cp $(CRT0_DIR)$(CRT0) $@; fi |
$(CRT0_DIR)$(CRT0): ; @true |