sniproxy uses "-Wpedantic" which base-gcc doesn't understand. This patch
removes that option and fixes the build on sparc64.

ok?

(cc maintainer)

--Kurt

Index: patches/patch-src_Makefile_am
===================================================================
RCS file: patches/patch-src_Makefile_am
diff -N patches/patch-src_Makefile_am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Makefile_am       7 Mar 2021 00:32:51 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+
+Index: src/Makefile.am
+--- src/Makefile.am.orig
++++ src/Makefile.am
+@@ -1,5 +1,5 @@
+ AM_CPPFLAGS = $(LIBEV_CFLAGS) $(LIBPCRE_CFLAGS) $(LIBUDNS_CFLAGS)
+-AM_CFLAGS = -fno-strict-aliasing -Wall -Wextra -Wpedantic -Wwrite-strings
++AM_CFLAGS = -fno-strict-aliasing -Wall -Wextra -Wwrite-strings
+ 
+ sbin_PROGRAMS = sniproxy
+ 

Reply via email to