Subject: Re: CPPFLAGS not adding BUILDLINK_CPPFLAGS
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 10/26/2003 07:09:42
On Fri, Oct 24, 2003 at 10:45:31AM -0700, Jeremy C. Reed wrote:
> I see that databases/db/buildlink2.mk does:
> 
> CPPFLAGS+=                      ${BUILDLINK_CPPFLAGS.db}
> 
> And various other buildlink2.mk do the same (like libyahoo, bobobo,
> MesaLib, and so on).
> 
> But db3, db4, and gdbm do not.
> 
> When should CPPFLAGS add the BUILDLINK_CPPFLAGS? And when should it not?

BUILDLINK_CPPFLAGS.<pkg> should consist of important preprocessor
directives that should be automatically added to CPPFLAGS in order
to successfully compile against the package.

I think packages expect to find headers for databases/db using
<db.h> instead of <db2/db.h>, while there is no such expectation for
the other database library packages that you list, so only the
databases/db/buildlink2.mk file addes BUILDLINK_CPPFLAGS.db to
CPPFLAGS.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>