git: 9151c92aec04 - main - devel/rubygem-posix-spawn: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 20:49:28 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9151c92aec04e1f642b826890c4614e51447484e
commit 9151c92aec04e1f642b826890c4614e51447484e
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 19:13:24 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 20:48:37 +0000
devel/rubygem-posix-spawn: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
devel/rubygem-posix-spawn/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/rubygem-posix-spawn/Makefile b/devel/rubygem-posix-spawn/Makefile
index 77e7b5b7a7d1..c271dfe200b8 100644
--- a/devel/rubygem-posix-spawn/Makefile
+++ b/devel/rubygem-posix-spawn/Makefile
@@ -14,4 +14,10 @@ USES= gem
PLIST_FILES= bin/posix-spawn-benchmark
+.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>