commit: 20d3f46b3759e61bcb992d443cc7722117474062
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 13 13:31:14 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 13 13:31:37 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d3f46b
toolchain.eclass: disable valgrind-interop for all cross
configure: error: --enable-valgrind-interop: valgrind/memcheck.h not found
make[1]: *** [Makefile:13210: configure-target-libgcc] Error 1
make[1]: Leaving directory
'/var/tmp/portage/cross-i686-w64-mingw32/gcc-16.0.9999/work/build'
make[1]: *** Waiting for unfinished jobs....
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 0c62e34a5c35..f4d6130e3fe1 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1809,7 +1809,7 @@ toolchain_src_configure() {
# We patch this in w/
PR66487-object-lifetime-instrumentation-for-Valgrind.patch,
# so it may not always be available.
if grep -q -- '--enable-valgrind-interop'
"${S}"/libgcc/configure.ac ; then
- if ! is_crosscompile || $(unset CC; unset CPP;
tc-getCPP ${CTARGET#accel-}) -E - <<<"#include <valgrind/memcheck.h>" >&
/dev/null ; then
+ if ! is_crosscompile && $(unset CC; unset CPP;
tc-getCPP ${CTARGET#accel-}) -E - <<<"#include <valgrind/memcheck.h>" >&
/dev/null ; then
confgcc+=( $(use_enable valgrind
valgrind-interop) )
else
confgcc+=( --disable-valgrind-interop )