------- Comment #7 from jakub at gcc dot gnu dot org 2007-01-26 13:32 ------- Static linking with -lpthread (which -fopenmp uses) is not supported in glibc/NPTL. You can probably make it working by adding -Wl,--whole-archive -lpthread -Wl,--no-whole-archive to the command line, but there are no guarantees it will work.
Anyway, this is not a GCC bug but GLIBC feature. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30471