This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix building src/opcodes with BSD make.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Thu, 31 Jul 2008 19:06:50 +0100
- Subject: Fix building src/opcodes with BSD make.
The attached patch is needed to make GDB build again with a BSD make.
The issue here is that BSD make doesn't like line continuations
in comments, and this:
$(srcdir)/ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl \
ia64-waw.tbl ia64-war.tbl
./ia64-gen --srcdir $(srcdir) > $@
... is expanded to this:
$(srcdir)/ia64-asmtab.c: # ia64-gen ia64-ic.tbl ia64-raw.tbl \
ia64-waw.tbl ia64-war.tbl
./ia64-gen --srcdir $(srcdir) > $@
Attached fixes it by simply removing the line continuation.
Tested by building GDB HEAD on FreeBSD 6.0. OK?
--
Pedro Alves
src/opcodes/
2008-07-31 Pedro Alves <pedro@codesourcery.com>
* Makefile.an ($(srcdir)/ia64-asmtab.c): Remove line continuation.
* Makefile.in: Regenerate.
---
Makefile.am | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: opcodes/Makefile.am
===================================================================
--- opcodes.orig/Makefile.am 2008-07-31 17:48:35.000000000 +0100
+++ opcodes/Makefile.am 2008-07-31 19:00:56.000000000 +0100
@@ -589,8 +589,7 @@ ia64-gen: ia64-gen.o
ia64-gen.o: ia64-gen.c ia64-opc.c ia64-opc-a.c ia64-opc-b.c ia64-opc-f.c \
ia64-opc-i.c ia64-opc-m.c ia64-opc-d.c ia64-opc.h
-$(srcdir)/ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl \
- ia64-waw.tbl ia64-war.tbl
+$(srcdir)/ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
./ia64-gen --srcdir $(srcdir) > $@
s390-mkopc: s390-mkopc.c