From a543c5ca7c1285548726e6d92ca6044dc1963340 Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Tue, 20 Feb 2018 10:03:56 +0000 Subject: [PATCH] Fix make 3.81 build errors gdbserver/ * Makefile.in: Switch order of make rules. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/Makefile.in | 26 +++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index b7e017c831..f105efa3da 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2018-02-20 Alan Hayward + Simon Marchi + + * Makefile.in: Switch order of make rules. + 2018-02-19 Alan Hayward * Makefile.in: Add common directory in build. diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index fcb6e1e817..2dbf9ae63d 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -537,11 +537,15 @@ ax.o: ax.c $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $< $(POSTCOMPILE) -arch/%.o: ../arch/%.c - $(COMPILE) $< +# Rules for objects that go in the in-process agent. + +arch/%-ipa.o: ../arch/%.c + $(IPAGENT_COMPILE) $< $(POSTCOMPILE) -# Rules for objects that go in the in-process agent. +common/%-ipa.o: ../common/%.c + $(IPAGENT_COMPILE) $< + $(POSTCOMPILE) %-ipa.o: %-generated.c $(IPAGENT_COMPILE) $< @@ -562,25 +566,21 @@ arch/%.o: ../arch/%.c $(IPAGENT_COMPILE) $< $(POSTCOMPILE) -common/%-ipa.o: ../common/%.c - $(IPAGENT_COMPILE) $< - $(POSTCOMPILE) +# Rules for objects that go in the gdbserver binary. -arch/%-ipa.o: ../arch/%.c - $(IPAGENT_COMPILE) $< +arch/%.o: ../arch/%.c + $(COMPILE) $< $(POSTCOMPILE) -# Rules for objects that go in the gdbserver binary. - -%.o: %-generated.c +common/%.o: ../common/%.c $(COMPILE) $< $(POSTCOMPILE) -%.o: %.c +%.o: %-generated.c $(COMPILE) $< $(POSTCOMPILE) -common/%.o: ../common/%.c +%.o: %.c $(COMPILE) $< $(POSTCOMPILE) -- 2.34.1