git: 348c10112de6 - main - devel/freebsd-gcc9: Build with -std=c++11.
Date: Tue, 04 Jul 2023 17:14:37 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/ports/commit/?id=348c10112de61df7e66ea2d5a190700213542caa
commit 348c10112de61df7e66ea2d5a190700213542caa
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-07-04 17:14:08 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-07-04 17:14:14 +0000
devel/freebsd-gcc9: Build with -std=c++11.
This works around errors from clang from LLVM16 due to -Wregister
warnings that are fatal in the default C++ standard (C++17) used by
clang 16.
---
devel/freebsd-gcc9/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/devel/freebsd-gcc9/Makefile b/devel/freebsd-gcc9/Makefile
index 79d93195ca76..fd4ca08eb754 100644
--- a/devel/freebsd-gcc9/Makefile
+++ b/devel/freebsd-gcc9/Makefile
@@ -26,6 +26,8 @@ TARGETARCH= ${FLAVOR}
USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
CPE_VENDOR= gnu
+CXXFLAGS+= -std=c++11
+
PLIST_SUB= OPSYS=${OPSYS:tl} \
SUFFIX=${SUFFIX} \
TARGETARCH=${TARGETARCH} \