On Sat, Apr 11 2020, Kurt Mosiejczuk wrote:
> base-gcc does not like "-Wpedantic". This patch removes it from CFLAGS.
> Fixes the build on sparc64 (and presumably other base-gcc arches).
I would replace -Wpedantic with -pedantic. ok jca@ either way.
> (cc maintainer)
>
> --Kurt
>
> Index: patches/patch-Makefile
> ===
> RCS file: patches/patch-Makefile
> diff -N patches/patch-Makefile
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-Makefile12 Apr 2020 02:38:54 -
> @@ -0,0 +1,16 @@
> +$OpenBSD$
> +
> +base-gcc doesn't like -Wpedantic
> +
> +Index: Makefile
> +--- Makefile.orig
> Makefile
> +@@ -2,7 +2,7 @@
> +
> + PREFIX=/usr/local
> + MANDIR=$(PREFIX)/share/man
> +-ALL_CFLAGS=$(CFLAGS) -std=c99 -Wall -Wextra -Wpedantic
> ++ALL_CFLAGS=$(CFLAGS) -std=c99 -Wall -Wextra
> + OBJ=\
> + build.o\
> + deps.o\
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE