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@gentoo.org>
This commit is contained in:
Sam James 2025-12-06 05:22:06 +00:00
parent 396b2e58f9
commit 4157bab730
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -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