diff options
author | Tom Tromey <tom@tromey.com> | 2018-08-07 12:07:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-08-07 16:39:13 -0600 |
commit | 9c61296405d4299b7000e445a6e07c0232bb0342 (patch) | |
tree | b65783d1d7ade303ea03fb430153e507e6806185 | |
parent | 7d11235d04ded4832430cd40013ca785a3896e4d (diff) | |
download | gdb-9c61296405d4299b7000e445a6e07c0232bb0342.zip gdb-9c61296405d4299b7000e445a6e07c0232bb0342.tar.gz gdb-9c61296405d4299b7000e445a6e07c0232bb0342.tar.bz2 |
Allow CPPFLAGS to be set on the make command line
While looking into PR build/8751 (which seems to be fixed), I noticed
that it's not possible to change CPPFLAGS for gdb on the "make"
command line. It's reasonable to want to do this sometimes, and I
think this patch should suffice.
gdb/ChangeLog
2018-08-07 Tom Tromey <tom@tromey.com>
* Makefile.in (CPPFLAGS): New variable.
(INTERNAL_CPPFLAGS): Use it.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/Makefile.in | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 352a864..838029b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-08-07 Tom Tromey <tom@tromey.com> + + * Makefile.in (CPPFLAGS): New variable. + (INTERNAL_CPPFLAGS): Use it. + 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> * NEWS: Mention the index cache. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9e90a46..59e3dbf 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -557,6 +557,7 @@ PROFILE_CFLAGS = @PROFILE_CFLAGS@ # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes". CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ +CPPFLAGS = @CPPFLAGS@ # Set by configure, for e.g. expat. Python installations are such that # C headers are included using their basename (for example, we #include @@ -564,7 +565,7 @@ CXXFLAGS = @CXXFLAGS@ # are sometimes a little generic, we think that the risk of collision # with other header files is high. If that happens, we try to mitigate # a bit the consequences by putting the Python includes last in the list. -INTERNAL_CPPFLAGS = @CPPFLAGS@ @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ +INTERNAL_CPPFLAGS = $(CPPFLAGS) @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. INTERNAL_CFLAGS_BASE = \ |