commit:     775295e04c5e0dd3b885eb2f8eb9070f0bbed61b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 30 22:19:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 30 22:41:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775295e0

toolchain.eclass: filter -fopenmp

When bootstrapping, if libgomp hasn't been built yet, GCC will error
out as it can't find libgomp.spec.

Closes: https://bugs.gentoo.org/966882
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6c9baba8fd7e..5f3b300f3ea8 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2145,6 +2145,8 @@ gcc_do_filter_flags() {
 
        # Avoid shooting self in foot
        filter-flags '-mabi*' -m31 -m32 -m64
+       # gcc will try to find libgomp.spec, which may not exist yet (bug 
#966882)
+       filter-flags -fopenmp
 
        # bug #490738
        filter-flags -frecord-gcc-switches

Reply via email to