From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH v2 1/2] [gdbsupport] Use INCGNU order in AM_CPPFLAGS
Date: Fri, 13 Nov 2026 15:41:18 +0100 [thread overview]
Message-ID: <20261113144119.47839-2-tdevries@suse.de> (raw)
In-Reply-To: <20261113144119.47839-1-tdevries@suse.de>
INCGNU from Makefile.gnulib.inc.in uses the gnulib include files from the
gnulib sources and the gnulib build in this order:
...
INCGNU = -I$(srcdir)/$(GNULIB_PARENT_DIR)/gnulib/import \
-I$(GNULIB_PARENT_DIR)/gnulib/import
...
Gdb and gdbserver use INCGNU, but gdbsupport doesn't:
...
AM_CPPFLAGS = \
...
-I../gnulib/import \
-I$(srcdir)/../gnulib/import \
...
...
and uses the opposite order.
This shouldn't matter, but for consistency, use the same order.
---
gdbsupport/Makefile.am | 2 +-
gdbsupport/Makefile.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am
index 4a3d94c1caa..01a623b1be0 100644
--- a/gdbsupport/Makefile.am
+++ b/gdbsupport/Makefile.am
@@ -28,8 +28,8 @@ SUBDIRS =
AM_CPPFLAGS = \
-I$(srcdir)/../include \
-I$(srcdir)/../gdb \
- -I../gnulib/import \
-I$(srcdir)/../gnulib/import \
+ -I../gnulib/import \
-I.. \
-I$(srcdir)/.. \
$(INCINTL) \
diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in
index 2da8adcc7ac..c3be0660336 100644
--- a/gdbsupport/Makefile.in
+++ b/gdbsupport/Makefile.in
@@ -396,8 +396,8 @@ SUBDIRS =
AM_CPPFLAGS = \
-I$(srcdir)/../include \
-I$(srcdir)/../gdb \
- -I../gnulib/import \
-I$(srcdir)/../gnulib/import \
+ -I../gnulib/import \
-I.. \
-I$(srcdir)/.. \
$(INCINTL) \
--
2.51.0
next prev parent reply other threads:[~2026-11-13 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 14:41 [PATCH v2 0/2] [gdb/build] Use gnulib fnmatch Tom de Vries
2026-11-13 14:41 ` Tom de Vries [this message]
2026-11-13 19:09 ` [PATCH v2 1/2] [gdbsupport] Use INCGNU order in AM_CPPFLAGS Thiago Jung Bauermann
2026-11-13 14:41 ` [PATCH v2 2/2] [gdb/build] Use gnulib fnmatch Tom de Vries
2026-11-13 19:10 ` Thiago Jung Bauermann
2026-11-13 18:27 ` [PATCH v2 0/2] " Tom Tromey
2026-11-14 13:41 ` Tom de Vries
2026-11-16 13:51 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261113144119.47839-2-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox