git: 3237ce155746 - main - devel/qjson: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 00:10:08 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3237ce1557467a3f89a3d1fa7a9308161665bf0c
commit 3237ce1557467a3f89a3d1fa7a9308161665bf0c
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-26 00:04:07 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 00:09:51 +0000
devel/qjson: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/qjson/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/qjson/Makefile b/devel/qjson/Makefile
index 19c4c328f806..60f4d1401fb5 100644
--- a/devel/qjson/Makefile
+++ b/devel/qjson/Makefile
@@ -29,6 +29,12 @@ OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CXXFLAGS+= -Dregister=
+.endif
+
post-build-DOXYGEN-on:
cd ${WRKSRC}/doc && doxygen