From 33c2b50e9fd480c60aeb999cac14b6597f859ea3 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 17 Jul 2024 04:39:44 +0800 Subject: [PATCH] libvterm: fix pedantic flag, fixes build with Xcode gcc --- devel/libvterm/Portfile | 5 ++++- devel/libvterm/files/patch-fix-pedantic.diff | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 devel/libvterm/files/patch-fix-pedantic.diff diff --git a/devel/libvterm/Portfile b/devel/libvterm/Portfile index 4381c3b720df6..0e205d33dad1b 100644 --- a/devel/libvterm/Portfile +++ b/devel/libvterm/Portfile @@ -29,10 +29,13 @@ checksums rmd160 757be59cf6b79f92bd8f45c95eb47276c04b4394 \ compiler.c_standard 1999 depends_build port:libtool \ - port:pkgconfig + path:bin/pkg-config:pkgconfig patchfiles-append patch-disable-silent-rules.diff +# cc1: error: unrecognized command line option "-Wpedantic" +patchfiles-append patch-fix-pedantic.diff + use_configure no build.args PREFIX=${prefix} diff --git a/devel/libvterm/files/patch-fix-pedantic.diff b/devel/libvterm/files/patch-fix-pedantic.diff new file mode 100644 index 0000000000000..2f73389888d49 --- /dev/null +++ b/devel/libvterm/files/patch-fix-pedantic.diff @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile 2024-07-17 04:36:00.000000000 +0800 +@@ -8,7 +8,7 @@ + LIBTOOL +=--quiet + endif + +-override CFLAGS +=-Wall -Iinclude -std=c99 -Wpedantic ++override CFLAGS +=-Wall -Iinclude -std=c99 -pedantic + + ifeq ($(shell uname),SunOS) + override CFLAGS +=-D__EXTENSIONS__ -D_XPG6 -D__XOPEN_OR_POSIX