Anthony Liguori wrote:
You should use --extra-cflags and --extra-ldflags. If we're not already
making these come before our -I$(srcdir), then we should change that.
Well, I may do whatever, but CPPFLAGS (yes this is correct, not CFLAGS)
and LDFLAGS is a common way also used by pkgsrc package management system
(therefore out of control of user at all).
Basically, we need to ensure that any of our headers have include
priority over system headers in the search path.
Yes, but to do it regardless what user might specify via CPPFLAGS.