commit: d4584144a3ccb5ac08c3eb67fe67918cec15f020
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 22 14:19:18 2024 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Feb 22 14:26:04 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4584144
dev-util/mingw64-toolchain: prevent sys/sdt.h (systemtap) detection
Unsure which conditions are needed to reproduce exactly,
(having dev-debug/systemtap is not enough) but failed for a
user with USE=systemtap enabled globally (perhaps related
to glibc[systemtap] or gcc[systemtap]).
--disable-systemtap does not do anything to help here, the
header is checked individually by libstdc++ and then fails
given it's missing for the mingw target.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
dev-util/mingw64-toolchain/mingw64-toolchain-11.0.0_p2.ebuild | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-11.0.0_p2.ebuild
b/dev-util/mingw64-toolchain/mingw64-toolchain-11.0.0_p2.ebuild
index 808cdc0731ae..9aab786878f3 100644
--- a/dev-util/mingw64-toolchain/mingw64-toolchain-11.0.0_p2.ebuild
+++ b/dev-util/mingw64-toolchain/mingw64-toolchain-11.0.0_p2.ebuild
@@ -143,6 +143,9 @@ src_compile() {
--without-zstd
)
${multilib} || conf_gcc+=( --disable-multilib )
+ # libstdc++ may misdetect sys/sdt.h on systemtap-enabled system and fail
+ # (not passed in conf_gcc above given it is lost in sub-configure calls)
+ local -x glibcxx_cv_sys_sdt_h=no
local conf_gcc_stage1=(
--enable-languages=c