Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: newlib/Makefile.in

Issue 1377003003: Specify output explicitly for the .c.o compile rule (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« newlib/Makefile.am ('K') | « newlib/Makefile.am ('k') | newlib/libc/Makefile.am » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698