Skip to content

Commit

Permalink
libvterm: fix pedantic flag, fixes build with Xcode gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 16, 2024
1 parent 7ccade9 commit 33c2b50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devel/libvterm/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
11 changes: 11 additions & 0 deletions devel/libvterm/files/patch-fix-pedantic.diff
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 33c2b50

Please sign in to comment.