Subject: Re: Add libprop include path to libkern/Makefile.inc (was: CVS commit:
To: None <simonb@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 07/26/2006 20:48:08
simonb@NetBSD.org wrote:

> We previously had a (unwritten?) goal of being able to build
> sys/arch/*/stand without ${DESTDIR}.  Do we still want to be able to do
> this?  I still find it handy to be able to do this to test out fixes and
> changes for bootblocks without having to run a partial build.sh first...

IMHO, the required fix is trivial, so we should keep
the (actually useful and reasonable) goal :-)
(though I'm not sure which Makefile or Makefile.inc is better)
---
Izumi Tsutsui


Index: sys/lib/libkern/Makefile
===================================================================
RCS file: /cvsroot/src/sys/lib/libkern/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- sys/lib/libkern/Makefile	27 Apr 2006 20:43:09 -0000	1.80
+++ sys/lib/libkern/Makefile	26 Jul 2006 11:42:19 -0000
@@ -28,6 +28,8 @@
 .include "${.PARSEDIR}/../../../common/lib/libc/Makefile.inc"
 .include "${.PARSEDIR}/../../../common/lib/libprop/Makefile.inc"
 
+CPPFLAGS+=	-I${KERNDIR}/../../../common/include
+
 .PATH.c: ${KERNDIR}
 .if exists ($M/Makefile.inc)
 .PATH.c: $M