Module Name:    src
Committed By:   joerg
Date:           Sun Feb  6 01:08:38 UTC 2011

Modified Files:
        src/share/mk: bsd.prog.mk

Log Message:
Don't use -nostdinc or -nostdinc++ if this is included in a HOSTLIB.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/share/mk/bsd.prog.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.257 src/share/mk/bsd.prog.mk:1.258
--- src/share/mk/bsd.prog.mk:1.257	Mon Jan 17 18:05:52 2011
+++ src/share/mk/bsd.prog.mk	Sun Feb  6 01:08:37 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.257 2011/01/17 18:05:52 pooka Exp $
+#	$NetBSD: bsd.prog.mk,v 1.258 2011/02/06 01:08:37 joerg Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -53,12 +53,15 @@
 .endif
 
 ##### Default values
+.if !defined(HOSTLIB)
 .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
+
 CFLAGS+=	${COPTS}
 OBJCFLAGS+=	${OBJCOPTS}
 MKDEP_SUFFIXES?=	.o .ln

Reply via email to