Module Name:    src
Committed By:   msaitoh
Date:           Thu Mar 26 05:04:36 UTC 2009

Modified Files:
        src/share/mk [netbsd-4]: bsd.sys.mk

Log Message:
Apply patch (requested by apb in ticket #1285)

        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.140.2.2 -r1.140.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.140.2.2 src/share/mk/bsd.sys.mk:1.140.2.3
--- src/share/mk/bsd.sys.mk:1.140.2.2	Fri Aug 31 14:57:36 2007
+++ src/share/mk/bsd.sys.mk	Thu Mar 26 05:04:36 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.140.2.2 2007/08/31 14:57:36 liamjfoy Exp $
+#	$NetBSD: bsd.sys.mk,v 1.140.2.3 2009/03/26 05:04:36 msaitoh Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -29,7 +29,7 @@
 		-Wno-deprecated -Wno-non-template-friend \
 		-Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth
 .endif
-.if ${WARNS} > 3 && ${HAVE_GCC} >= 3
+.if ${WARNS} > 3 && defined(HAVE_GCC) && ${HAVE_GCC} >= 3
 CFLAGS+=	-std=gnu99
 .endif
 .endif

Reply via email to