------- Comment #7 from jv244 at cam dot ac dot uk 2009-02-13 21:00 ------- (In reply to comment #6) > Not a gcc bug so closing as invalid.
The gcc 'bug' is that -fopenmp -static should link to pthreads as -Wl,--whole-archive -lpthread -Wl,--no-whole-archive, if that is required, or error out if that is not possible. The current way of just adding -lpthread and hoping it is correct (even in the presence of -static) is leading to wrong code. -- jv244 at cam dot ac dot uk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39176