https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106509
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -static and glibc and pthreads (which openmp uses) has always been problematic. Why do you want to use -static?
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 02 Aug 2022 12:38:51 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106509
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -static and glibc and pthreads (which openmp uses) has always been problematic. Why do you want to use -static?