+2017-04-07 Jeff Law <law@redhat.com>
+
+ * Makefile.in: Swap definition of LIBGCC_LINKS and inclusion of
+ target makefile fragment.
+ * config/sh/t-sh (unwind-dw2-Os-4-200.o): Depend on LIBGCC_LINKS.
+
2017-04-07 Alan Modra <amodra@gmail.com>
PR target/45053
SHLIBUNWIND_LINK =
SHLIBUNWIND_INSTALL =
-tmake_file = @tmake_file@
-include $(srcdir)/empty.mk $(tmake_file)
# Create links to files specified in config.host.
LIBGCC_LINKS = enable-execute-stack.c unwind.h md-unwind-support.h \
gthr-default.h: $(srcdir)/$(thread_header)
-$(LN_S) $< $@
+tmake_file = @tmake_file@
+include $(srcdir)/empty.mk $(tmake_file)
+
# Collect target defines and headers from config.host.
libgcc_tm_defines = @tm_defines@
libgcc_tm_file = @tm_file@
$(gcc_compile) -c -DL_sdivsi3_i4i $<
udivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.S
$(gcc_compile) -c -DL_udivsi3_i4i $<
-unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c
+unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c $(LIBGCC_LINKS)
$(gcc_compile) $(LIBGCC2_CFLAGS) $(vis_hide) -fexceptions -Os -c $<
OBJS_Os_4_200=sdivsi3_i4i-Os-4-200.o udivsi3_i4i-Os-4-200.o unwind-dw2-Os-4-200.o