git: 6ed3dec8833b - main - converters/cocot: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 20:45:37 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6ed3dec8833b3551a5e1c229838fc856ec5f85cc
commit 6ed3dec8833b3551a5e1c229838fc856ec5f85cc
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 19:56:01 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 20:45:27 +0000
converters/cocot: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
converters/cocot/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/converters/cocot/Makefile b/converters/cocot/Makefile
index 3f225b715c78..96b896a2f505 100644
--- a/converters/cocot/Makefile
+++ b/converters/cocot/Makefile
@@ -24,6 +24,12 @@ LDFLAGS+= -L${ICONV_PREFIX}/lib
DOCS_EN= COPYING ChangeLog
DOCS_JA= ChangeLog.ja README.ja
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
.for f in ${DOCS_EN}