Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 04:50:46 GMT
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 97bb4872ef4e - main - net/messagelib: Fix build with llvm 16
Message-ID:  <202306250450.35P4okbt075766@gitrepo.freebsd.org>

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

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

commit 97bb4872ef4e97eb157f8063ddbe4b83f3795ddd
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2023-06-25 04:48:38 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2023-06-25 04:48:38 +0000

    net/messagelib: Fix build with llvm 16
    
    Approved by:    portmgr (blanket)
---
 net/messagelib/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net/messagelib/Makefile b/net/messagelib/Makefile
index 2e68778bd2dc..eca7bc2b672b 100644
--- a/net/messagelib/Makefile
+++ b/net/messagelib/Makefile
@@ -42,4 +42,10 @@ OPTIONS_SUB=		yes
 INOTIFY_DESC=		Filesystem alteration notifications using inotify
 INOTIFY_LIB_DEPENDS=	libinotify.so:devel/libinotify
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CXXFLAGS+=	-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
+.endif
+
+.include <bsd.port.post.mk>



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