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

Unified Diff: newlib/Makefile.am

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
« no previous file with comments | « no previous file | newlib/Makefile.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: newlib/Makefile.am
diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 5ecce4c1024e821e1715922bbfc6b468ea1b335c..d33099bdda932105280eec88008dd6dc339e5eea 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -87,7 +87,7 @@ endif
noinst_DATA = stmp-targ-include
-toollib_DATA = $(CRT0) $(CRT1)
+toollib_DATA = $(wildcard $(CRT0)) $(CRT1)
Roland McGrath 2015/10/07 22:13:23 This is horrible in multiple ways.
# The functions ldexp, frexp and modf are traditionally supplied in
@@ -177,10 +177,10 @@ libm/libm.a: ; @true
endif # USE_LIBTOOL
-crt0.o: $(CRT0_DIR)$(CRT0)
+crt0.o: $(wildcard $(CRT0_DIR)$(CRT0))
Roland McGrath 2015/10/07 22:13:23 Also horrible.
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
« no previous file with comments | « no previous file | newlib/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698