Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Don't use -nostdinc or -nostdinc++ if this is inclu...



details:   https://anonhg.NetBSD.org/src/rev/7c37092ae8b2
branches:  trunk
changeset: 761714:7c37092ae8b2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Feb 06 01:08:37 2011 +0000

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

diffstat:

 share/mk/bsd.prog.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r d393a9342747 -r 7c37092ae8b2 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Sun Feb 06 00:52:49 2011 +0000
+++ b/share/mk/bsd.prog.mk      Sun Feb 06 01:08:37 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index