git: dd2ae605796e - main - devel/systemc: Add USE_CXXSTD to match the C++ standard level with cad/verilator

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 01 Nov 2023 16:57:56 UTC
The branch main has been updated by yuri:

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

commit dd2ae605796e8fe313e3f9aacc100241dc3d7313
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-01 16:55:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-01 16:57:53 +0000

    devel/systemc: Add USE_CXXSTD to match the C++ standard level with cad/verilator
    
    Some symbols reflect the C++ standard level and verilator can't
    find SystemC when levels do not match.
---
 devel/systemc/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devel/systemc/Makefile b/devel/systemc/Makefile
index c42abcda23dd..842b4fac13b3 100644
--- a/devel/systemc/Makefile
+++ b/devel/systemc/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	systemc
 DISTVERSION=	2.3.4
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	_pub_rev_20190614
 CATEGORIES=	devel
 
@@ -13,7 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 ONLY_FOR_ARCHS=		aarch64 amd64 i386
 ONLY_FOR_ARCHS_REASON=	configure: error: sorry...architecture not supported
 
-USES=		gmake libtool
+USES=		compiler:c++17-lang gmake libtool
+USE_CXXSTD=	c++17 # needs to match that of cad/verilator, to avoid mismatches like https://github.com/verilator/verilator/issues/4499
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes