Skip to content

Commit

Permalink
dns/getdns: 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 Jul 19, 2023
1 parent 336f3a5 commit 91c0119
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dns/getdns/Makefile
Expand Up @@ -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
Expand All @@ -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>

0 comments on commit 91c0119

Please sign in to comment.