------- Comment #3 from jv244 at cam dot ac dot uk  2009-02-13 12:19 -------
(In reply to comment #2)
> This has been repeated many times.  Don't use -static for threaded programs, 
> it
> is really bad idea, and if you really have to, you need to link the whole
> libpthread.a in (-Wl,--whole-archive -lpthread -Wl,--no-whole-archive),
> otherwise if it works, it is by pure luck.
> This certainly isn't a regression.
> 

Thanks for your reply, this was unknown to me, and I think for many occassional
omp users. Do you think this could be documented near the -fopenmp flag (I can
write something if you wish). Or could one have gcc warn if both -fopenmp and
-static are present ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39176

Reply via email to