Don't use -I for common subdirectory
authorTom Tromey <tom@tromey.com>
Tue, 22 Jan 2019 07:26:45 +0000 (00:26 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 25 Jan 2019 22:28:17 +0000 (15:28 -0700)
This changes the Makefiles to remove the -I for the common/
subdirectory.  This will enforce the rule that includes must use the
'common/filename.h' form.

gdb/ChangeLog
2019-01-25  Tom Tromey  <tom@tromey.com>

* Makefile.in (GDB_CFLAGS): Don't add -I for common.

gdb/gdbserver/ChangeLog
2019-01-25  Tom Tromey  <tom@tromey.com>

* Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.

gdb/ChangeLog
gdb/Makefile.in
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in

index b893255ee934fb4b9a5ec934916908e846ac666c..ede7a647d4fd4ef3c39d7c41c8b44d516d04c8d0 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-25  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (GDB_CFLAGS): Don't add -I for common.
+
 2019-01-25  Tom Tromey  <tom@tromey.com>
 
        * xtensa-linux-nat.c: Fix common/ includes.
index 215ef7933cb495fab5ba58149e74781d895c6d81..72ca855eb0713d24902d8e81759e8b689cf90608 100644 (file)
@@ -543,7 +543,7 @@ CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
 # your system doesn't have fcntl.h in /usr/include (which is where it
 # should be according to Posix).
 DEFS = @DEFS@
-GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/common -I$(srcdir)/config \
+GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config \
        -DLOCALEDIR="\"$(localedir)\"" $(DEFS)
 
 # MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory.
index 0fd3360fc0f96f8f869de4e537da0b4f826b2f59..a244c4ffef654e6f2adc13ec7b52a242f675266f 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-25  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
+
 2019-01-25  Tom Tromey  <tom@tromey.com>
 
        * win32-low.c: Fix common/ includes.
index 4ae13692a2feb5367b00171aea70963ce452f4b5..8cffe3dda2d5d300f5ec71f63b36f6e3045d732d 100644 (file)
@@ -118,7 +118,7 @@ GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
 # in those directories should be included with the subdirectory.
 # e.g.: "target/wait.h".
 #
-INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
+INCLUDE_CFLAGS = -I. -I${srcdir} \
        -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
        $(INCGNU)
 
This page took 0.047316 seconds and 4 git commands to generate.