git: 85fe99848576 - main - devel/rubygem-rbtrace: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 15:53:10 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=85fe99848576f3892011536ec25559d5fbb2295d

commit 85fe99848576f3892011536ec25559d5fbb2295d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 12:11:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 15:53:01 +0000

    devel/rubygem-rbtrace: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/rubygem-rbtrace/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/rubygem-rbtrace/Makefile b/devel/rubygem-rbtrace/Makefile
index 853ebd6b51d2..ae92c0f65cfc 100644
--- a/devel/rubygem-rbtrace/Makefile
+++ b/devel/rubygem-rbtrace/Makefile
@@ -18,4 +18,10 @@ USES=		gem
 
 PLIST_FILES=	bin/rbtrace
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
+
 .include <bsd.port.mk>