Module Name: src
Committed By: msaitoh
Date: Thu Mar 26 05:07:52 UTC 2009
Modified Files:
src/share/mk [netbsd-3]: bsd.sys.mk
Log Message:
Apply patch (requested by apb in ticket #1997)
Avoid passing "-std=c99" in CFLAGS on host platforms
that use a compiler other than GCC. Requested in PR 40540.
To generate a diff of this commit:
cvs rdiff -u -r1.115.2.2 -r1.115.2.3 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.115.2.2 src/share/mk/bsd.sys.mk:1.115.2.3
--- src/share/mk/bsd.sys.mk:1.115.2.2 Sun Sep 4 20:04:04 2005
+++ src/share/mk/bsd.sys.mk Thu Mar 26 05:07:51 2009
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.115.2.2 2005/09/04 20:04:04 tron Exp $
+# $NetBSD: bsd.sys.mk,v 1.115.2.3 2009/03/26 05:07:51 msaitoh Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -26,7 +26,7 @@
.if ${WARNS} > 2
CFLAGS+= -Wcast-qual -Wwrite-strings
.endif
-.if ${WARNS} > 3
+.if ${WARNS} > 3 && defined(HAVE_GCC) && ${HAVE_GCC} >= 3
CFLAGS+= -std=c99
.endif
.endif