Remove the -pedantic flag to fix build on GCC-based systems:

cc1: error: unrecognized command line option "-Wpedantic"

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2020-04-15 10:11:45 +00:00
parent 47ce7592f4
commit ef3a5d336c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531755
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- Makefile.orig 2020-03-29 00:40:58 UTC
+++ 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\

View file

@ -0,0 +1,9 @@
--- build.ninja.orig 2020-03-29 00:40:58 UTC
+++ build.ninja
@@ -1,5 +1,5 @@
cc = cc
-cflags = -Wall -Wextra -std=c99 -pedantic
+cflags = -Wall -Wextra -std=c99
rule cc
command = $cc -MD -MF $out.d $cflags -c -o $out $in