Module Name: src
Committed By: christos
Date: Sun Dec 29 03:32:00 UTC 2013
Modified Files:
src/external/bsd/ntp/lib/libopts: Makefile
Log Message:
Handle ancient vax gcc.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/ntp/lib/libopts/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/lib/libopts/Makefile
diff -u src/external/bsd/ntp/lib/libopts/Makefile:1.6 src/external/bsd/ntp/lib/libopts/Makefile:1.7
--- src/external/bsd/ntp/lib/libopts/Makefile:1.6 Fri Dec 27 22:19:44 2013
+++ src/external/bsd/ntp/lib/libopts/Makefile Sat Dec 28 22:32:00 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2013/12/28 03:19:44 christos Exp $
+# $NetBSD: Makefile,v 1.7 2013/12/29 03:32:00 christos Exp $
LIBISPRIVATE=yes
@@ -16,7 +16,10 @@ CPPFLAGS+=-I${DIST}
SRCS=libopts.c
-COPTS.libopts.c += -Wno-format-contains-nul -Wno-format-nonliteral -Wno-error -DPOSIX_SHELL="\"/bin/sh\""
+COPTS.libopts.c += -Wno-format-nonliteral -Wno-error -DPOSIX_SHELL="\"/bin/sh\""
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
+COPTS.libopts.c += -Wno-format-contains-nul
COPTS.find.c += -Wno-format-contains-nul
COPTS.makeshell.c += -Wno-format-contains-nul
COPTS.nested.c += -Wno-format-contains-nul
@@ -24,5 +27,6 @@ COPTS.pgusage.c += -Wno-format-contains-
COPTS.putshell.c += -Wno-format-contains-nul
COPTS.save.c += -Wno-format-contains-nul
COPTS.usage.c += -Wno-format-contains-nul
+.endif
.include <bsd.lib.mk>