Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v retrieving revision 1.298 retrieving revision 1.299 diff -u -p -r1.298 -r1.299 --- src/share/mk/bsd.lib.mk 2009/04/10 16:16:12 1.298 +++ src/share/mk/bsd.lib.mk 2009/11/27 11:44:36 1.299 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.298 2009/04/10 16:16:12 apb Exp $ +# $NetBSD: bsd.lib.mk,v 1.299 2009/11/27 11:44:36 tsutsui Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -72,9 +72,13 @@ MKDEP_SUFFIXES?= .o .po .so .go .ln # Use purely kernel private headers in rump builds .if !defined(RUMPKERNEL) +.if empty(CPPFLAGS:M-nostdinc) CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} +.endif +.if empty(CXXFLAGS:M-nostdinc++) CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++} .endif +.endif .if !defined(SHLIB_MAJOR) && exists(${SHLIB_VERSION_FILE}) # { SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major