git: c42df690ad53 - main - textproc/discount: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 18:10:12 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=c42df690ad53ca97fe8b78c53f861cbff838d147 commit c42df690ad53ca97fe8b78c53f861cbff838d147 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-24 17:27:34 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-24 18:10:02 +0000 textproc/discount: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- textproc/discount/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/textproc/discount/Makefile b/textproc/discount/Makefile index bec1db4494e5..a49535c576db 100644 --- a/textproc/discount/Makefile +++ b/textproc/discount/Makefile @@ -38,6 +38,12 @@ EXTRA_CONFIGURE_ON= --with-dl=both --with-fenced-code --with-github-tags --with- SAMPLES_INSTALL_TARGET= install.samples TAB8_CONFIGURE_ON= --with-tabstops=8 +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-install: ${INSTALL_DATA} ${WRKSRC}/libmarkdown.a ${STAGEDIR}${PREFIX}/lib/libmarkdown.a ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmarkdown.so