From 339fad86665461c63d4386095f3ea1c8c3d06586 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 30 Aug 2023 18:28:52 +0200 Subject: [PATCH] net/rubygem-grpc: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net/rubygem-grpc/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/rubygem-grpc/Makefile b/net/rubygem-grpc/Makefile index 9a2add151eec3..cc88519b5c401 100644 --- a/net/rubygem-grpc/Makefile +++ b/net/rubygem-grpc/Makefile @@ -19,6 +19,12 @@ USES= cpe gem gmake pkgconfig MAKE_JOBS_UNSAFE= yes +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types" +.endif + post-patch: @${RM} ${WRKSRC}/Makefile ${WRKSRC}/.yardopts @${RM} -r ${WRKSRC}/etc ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl ${WRKSRC}/src/core