git: 05706f90a8f1 - main - devel/criterion: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 17:43:22 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=05706f90a8f196ba6a92886c6f2bd5e2a3192dc9 commit 05706f90a8f196ba6a92886c6f2bd5e2a3192dc9 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-20 14:29:30 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-20 17:42:36 +0000 devel/criterion: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/criterion/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devel/criterion/Makefile b/devel/criterion/Makefile index fbd8e2a66be6..bf011f60e4f7 100644 --- a/devel/criterion/Makefile +++ b/devel/criterion/Makefile @@ -37,6 +37,12 @@ CFLAGS+= -fPIC \ MESON_ARGS= -Dtests=false -Dsamples=false +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + quick-test: @cd ${TEST_WRKSRC} && \ ${CC} ${CFLAGS} ${LDFLAGS} -I${STAGEDIR}${PREFIX}/include \