Allow HOSTLIB to use C++ by not specifying -nostdinc++.

This commit is contained in:
joerg 2011-02-06 00:52:49 +00:00
parent e60f59b973
commit 5c52343643
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.dep.mk,v 1.70 2011/01/12 23:12:11 joerg Exp $
# $NetBSD: bsd.dep.mk,v 1.71 2011/02/06 00:52:49 joerg Exp $
##### Basic targets
cleandir: cleandepend
@ -57,8 +57,8 @@ ${__DPSRCS.d}: ${__DPSRCS.notd} ${DPSRCS}
${_MKTARGET_CREATE}
${MKDEP} -f ${.TARGET} -- ${MKDEPFLAGS} \
${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} \
${DESTDIR}/usr/include/g++} \
${HOSTLIB:U${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} \
${DESTDIR}/usr/include/g++}} \
${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
.endif # defined(SRCS) # }

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.310 2010/12/08 01:57:22 joerg Exp $
# $NetBSD: bsd.lib.mk,v 1.311 2011/02/06 00:52:49 joerg Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@ -64,7 +64,8 @@ DPADD+= ${LIBDO.${_lib}}/lib${_lib}.so
MKDEP_SUFFIXES?= .o .po .pico .go .ln
# Use purely kernel private headers in rump builds
.if !defined(RUMPKERNEL)
# Skip NetBSD headers for the toolchain builds
.if !defined(RUMPKERNEL) && !defined(HOSTLIB)
.if empty(CPPFLAGS:M-nostdinc)
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}
.endif