git: 4e8188fdccdf - main - devel/ucommon: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Jun 2023 00:53:49 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=4e8188fdccdfea82c790727d5de82d9914d43971 commit 4e8188fdccdfea82c790727d5de82d9914d43971 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-29 23:53:33 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-30 00:52:07 +0000 devel/ucommon: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- devel/ucommon/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devel/ucommon/Makefile b/devel/ucommon/Makefile index d3ef1b5e554b..b86b69db4292 100644 --- a/devel/ucommon/Makefile +++ b/devel/ucommon/Makefile @@ -17,7 +17,13 @@ CMAKE_ARGS= -DBUILD_TESTING:BOOL=ON \ USE_LDCONFIG= yes TEST_TARGET= test +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 +USE_CXXSTD= c++11 +.endif + post-install: ${INSTALL_DATA} ${BUILD_WRKSRC}/ucommon-config.h ${STAGEDIR}${PREFIX}/include/ucommon -.include <bsd.port.mk> +.include <bsd.port.post.mk>