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@gentoo.org>
This commit is contained in:
Sam James 2025-11-30 22:19:23 +00:00
parent 4f36c6b33e
commit 775295e04c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

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