Subject: Re: CVS commit: src/lib/libc/arch/vax/net
To: Havard Eidnes <he@netbsd.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: source-changes
Date: 06/07/2004 09:43:25
--XG0jWBK27HhJN4nS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 06, 2004 at 01:26:01PM +0000, Havard Eidnes wrote:
  |=20
  | Module Name:	src
  | Committed By:	he
  | Date:		Sun Jun  6 13:26:01 UTC 2004
  |=20
  | Modified Files:
  | 	src/lib/libc/arch/vax/net: Makefile.inc
  |=20
  | Log Message:
  | It appears necessary to add -I. to CPPFLAGS for nslexer.c.  This is
  | most probably caused by gcc 2.95.3; will be documented in doc/HACKS.
  | Reviewed by ragge.

This is a common issue for "auto generated" header files that end up
in ${.OBJDIR} (which could be the srcdir ${.CURDIR} if you're not
using objdirs).

I don't consider it a hack to require that we need to explicitly
add -I. to CPPFLAGS to successfully reference #include header
files created in the .OBJDIR by an earlier part of the build
process.  Note that you still need to add such header files to
DPSRCS in the Makefile to ensure that the build dependency ordering
is correct.

Luke.

--XG0jWBK27HhJN4nS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAw6wdpBhtmn8zJHIRAmu/AJ4wGbUydF5BN2HKYtuujdiH94t+ZACeKR5m
yBvqO5c43m/rSj7WlEFHDIg=
=eKPK
-----END PGP SIGNATURE-----

--XG0jWBK27HhJN4nS--