From 8caa75eee413f6e49ae0ec53e784ab31893ba4c7 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 21 Feb 2011 20:04:25 +0000 Subject: [PATCH] gdb/ * common/Makefile.in (CFLAGS): New. (COMPILE): Add $(CFLAGS). --- gdb/ChangeLog | 5 +++++ gdb/common/Makefile.in | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e8f7131273..bd4667e4028 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-02-21 Jan Kratochvil + + * common/Makefile.in (CFLAGS): New. + (COMPILE): Add $(CFLAGS). + 2011-02-21 Tom Tromey * breakpoint.c (catch_syscall_command_1): Fix typo. diff --git a/gdb/common/Makefile.in b/gdb/common/Makefile.in index a87f2d1a2c4..9230b8793c6 100644 --- a/gdb/common/Makefile.in +++ b/gdb/common/Makefile.in @@ -23,6 +23,10 @@ AUTOHEADER = @AUTOHEADER@ RANLIB = @RANLIB@ COMMON_CPU_OBJ = @COMMON_CPU_OBJ@ +# CFLAGS is specifically reserved for setting from the command line +# when running make. I.E. "make CFLAGS=-Wmissing-prototypes". +CFLAGS = @CFLAGS@ + BFD_DIR = ../../bfd BFD_SRC = $(srcdir)/$(BFD_DIR) BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC) @@ -37,7 +41,8 @@ all: libcommon.a signals.o: $(srcdir)/signals.c $(COMPILE) $(srcdir)/signals.c -COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) -c +COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) \ + @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) $(CFLAGS) -c # Implicit rules -- 2.30.2