git: 91c0119a9327 - main - dns/getdns: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 20:45:44 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91c0119a93278f0afddcc8031ce1289c560815f9
commit 91c0119a93278f0afddcc8031ce1289c560815f9
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 20:21:11 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 20:45:28 +0000
dns/getdns: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
dns/getdns/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dns/getdns/Makefile b/dns/getdns/Makefile
index cff48e0bdad3..85a00b3aae99 100644
--- a/dns/getdns/Makefile
+++ b/dns/getdns/Makefile
@@ -49,6 +49,12 @@ STUBBY_LIB_DEPENDS= libyaml.so:textproc/libyaml
STUBBY_CONFIGURE_WITH= stubby
STUBBY_VARS= USE_RC_SUBR="stubby"
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
-e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in
@@ -64,4 +70,4 @@ post-stage-STUBBY-on:
post-install-STUBBY-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/stubby
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>