git: 339fad866654 - main - net/rubygem-grpc: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Aug 2023 16:53:23 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=339fad86665461c63d4386095f3ea1c8c3d06586 commit 339fad86665461c63d4386095f3ea1c8c3d06586 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-30 16:28:52 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-30 16:52:04 +0000 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 9a2add151eec..cc88519b5c40 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 <bsd.port.options.mk> + +.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