Chromium Code Reviews| 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 |