Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 16:22:36 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: faae7b2bfefd - main - irc/ninja: Fix build with llvm16
Message-ID:  <202308021622.372GMa7X035954@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=faae7b2bfefde7220d86633aec6042c22a82a20e

commit faae7b2bfefde7220d86633aec6042c22a82a20e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 16:21:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 16:22:20 +0000

    irc/ninja: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 irc/ninja/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/irc/ninja/Makefile b/irc/ninja/Makefile
index a135e5505484..f6f1e7c3e511 100644
--- a/irc/ninja/Makefile
+++ b/irc/ninja/Makefile
@@ -13,6 +13,12 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	IRCLIB="${DATADIR}"
 MAKE_JOBS_UNSAFE=	yes
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/ninjawserv ${STAGEDIR}${PREFIX}/bin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308021622.372GMa7X035954>