Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ipf/bin external/bsd/ipf: Fix build failure und...



details:   https://anonhg.NetBSD.org/src/rev/b737c03993ea
branches:  trunk
changeset: 744736:b737c03993ea
user:      fox <fox%NetBSD.org@localhost>
date:      Wed Feb 12 00:30:48 2020 +0000

description:
external/bsd/ipf: Fix build failure under LLVM.

-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.

Reviewed by: kamil@

diffstat:

 external/bsd/ipf/bin/ipmon/Makefile  |  4 ++--
 external/bsd/ipf/bin/ipsend/Makefile |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6a5cfe19cbe0 -r b737c03993ea external/bsd/ipf/bin/ipmon/Makefile
--- a/external/bsd/ipf/bin/ipmon/Makefile       Wed Feb 12 00:19:07 2020 +0000
+++ b/external/bsd/ipf/bin/ipmon/Makefile       Wed Feb 12 00:30:48 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2020/02/09 07:47:50 fox Exp $
+#      $NetBSD: Makefile,v 1.3 2020/02/12 00:30:48 fox Exp $
 
 PROG=          ipmon
 SRCS=          ipmon.c ipmon_y.c ipmon_l.c
@@ -11,7 +11,7 @@
 CLEANFILES+=   ipmon_y.c ipmon_y.h
 CLEANFILES+=   ipmon_l.c ipmon_l.h
 
-COPTS.ipmon.c+=        -Wno-error=format-overflow
+COPTS.ipmon.c+=        ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
 
 ipmon_y.c: ipmon_y.y
        ${_MKTARGET_CREATE}
diff -r 6a5cfe19cbe0 -r b737c03993ea external/bsd/ipf/bin/ipsend/Makefile
--- a/external/bsd/ipf/bin/ipsend/Makefile      Wed Feb 12 00:19:07 2020 +0000
+++ b/external/bsd/ipf/bin/ipsend/Makefile      Wed Feb 12 00:30:48 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2020/02/09 07:51:20 fox Exp $
+#      $NetBSD: Makefile,v 1.5 2020/02/12 00:30:48 fox Exp $
 
 .include <bsd.own.mk>
 .include "../Makefile.inc"
@@ -25,7 +25,7 @@
 .PATH:         ${UDIST}/ipsend \
                ${UDIST}/iplang
 
-COPTS.ipsopt.c+=       -Wno-error=maybe-uninitialized
+COPTS.ipsopt.c+=       ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=maybe-uninitialized :}
 
 iplang_y.c: iplang_y.y
        ${_MKTARGET_CREATE}



Home | Main Index | Thread Index | Old Index