Fix CPPFLAGS handling in gdbserver's build.
authorJoel Brobecker <brobecker@adacore.com>
Tue, 16 Sep 2014 18:55:01 +0000 (11:55 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 16 Sep 2014 20:31:07 +0000 (13:31 -0700)
commitbffc0964c7730dcdcc81eb5d45ee69b1e2a2cbec
tree99e434d60df6da2710c84465ab5204497dd8733d
parent76aeec5b98e73589013f24bd99e3c40189bec7e8
Fix CPPFLAGS handling in gdbserver's build.

In gdb/gdbserver/Makefile.in, IPAGENT_CFLAGS is defined using
an expression which references $(CPPFLAGS). But CPPFLAGS isn't
actually defined.

This patch first adds a CPPFLAGS definition, so as to inherit
the value passed at configure time (if any). And it then makes it
part of INTERNAL_CFLAGS_BASE, instead. There is no reason that
CPPFLAGS be useful for a certain class of source files, and not
the rest. This is also consistent with what's done in GDB.

gdb/gdbserver/ChangeLog:

        * Makefile.in (CPPFLAGS): Define.
        (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
        (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.

Tested by rebuilding GDBserver with a dummy CPPFLAGS, and verifying
that the compilation command was altered as expected.
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
This page took 0.025348 seconds and 4 git commands to generate.