commit:     4157bab73027897b7c6ff44dc12b170fe3924898
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  6 05:22:06 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  6 05:23:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4157bab7

sys-devel/bpf-toolchain: build w/ -std=gnu++14 for now

GCC 16 defaults to -std=gnu++20. Hack in -std=gnu++17 until PR122941
is fixed.

We had the same problem in dev-util/mingw64-toolchain.

Bug: https://gcc.gnu.org/PR122941
Closes: https://bugs.gentoo.org/967042
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/bpf-toolchain/bpf-toolchain-15.2.0_p2.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-devel/bpf-toolchain/bpf-toolchain-15.2.0_p2.ebuild 
b/sys-devel/bpf-toolchain/bpf-toolchain-15.2.0_p2.ebuild
index eb1544a1f4bb..71edc8ef25e8 100644
--- a/sys-devel/bpf-toolchain/bpf-toolchain-15.2.0_p2.ebuild
+++ b/sys-devel/bpf-toolchain/bpf-toolchain-15.2.0_p2.ebuild
@@ -136,6 +136,9 @@ src_compile() {
                --without-isl
                --without-zstd
                --disable-multilib
+
+               # TODO: can likely remove this when bump to >=gcc-15.3 (bug 
#967042)
+               CXX="$(tc-getCXX) -std=c++14"
        )
 
        # libstdc++ may misdetect sys/sdt.h on systemtap-enabled system and fail

Reply via email to