Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/lib/libopts Handle ancient vax gcc.
details: https://anonhg.NetBSD.org/src/rev/0a3572e5a30d
branches: trunk
changeset: 325564:0a3572e5a30d
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 29 03:32:00 2013 +0000
description:
Handle ancient vax gcc.
diffstat:
external/bsd/ntp/lib/libopts/Makefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 8f2c1ee99d39 -r 0a3572e5a30d external/bsd/ntp/lib/libopts/Makefile
--- a/external/bsd/ntp/lib/libopts/Makefile Sun Dec 29 03:26:07 2013 +0000
+++ b/external/bsd/ntp/lib/libopts/Makefile Sun Dec 29 03:32:00 2013 +0000
@@ -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 @@
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.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>
Home |
Main Index |
Thread Index |
Old Index