From e7f517aadced1ffef304905fc58ed0bc9d806a00 Mon Sep 17 00:00:00 2001 From: fox Date: Wed, 12 Feb 2020 00:41:50 +0000 Subject: [PATCH] external/mpl/dhcp: Fix build failure under LLVM. -Wno-error= flag now only applies to gcc 8 and not to LLVM based builds. Reviewed by: kamil@ --- external/mpl/dhcp/bin/server/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/mpl/dhcp/bin/server/Makefile b/external/mpl/dhcp/bin/server/Makefile index ff8a65b36c69..65bb67e11d03 100644 --- a/external/mpl/dhcp/bin/server/Makefile +++ b/external/mpl/dhcp/bin/server/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2020/02/09 07:59:44 fox Exp $ +# $NetBSD: Makefile,v 1.4 2020/02/12 00:41:50 fox Exp $ .include @@ -19,7 +19,7 @@ FILES= dhcpd.conf COPTS.ddns.c +=-Wno-stringop-overflow .endif -COPTS.mdb6.c += -Wno-error=format-overflow +COPTS.mdb6.c += ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :} COPTS.omapi.c += -Wno-stack-protector .include