Message ID | CAEwic4bQHGtKEcm73Og-MuZOnatdjPmqBb3ysLq8xN8KASv7SA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Index: mingw32.h =================================================================== --- mingw32.h (revision 177784) +++ mingw32.h (working copy) @@ -189,7 +189,8 @@ /* mingw32 uses the -mthreads option to enable thread support. */ #undef GOMP_SELF_SPECS -#define GOMP_SELF_SPECS "%{fopenmp: -mthreads}" +#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: " \ + "-mthreads -pthread}" /* mingw32 atexit function is safe to use in shared libraries. Use it to register C++ static destructors. */