Skip to content

Commit

Permalink
net/rubygem-grpc: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 30, 2023
1 parent b8948f8 commit 339fad8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/rubygem-grpc/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 339fad8

Please sign in to comment.