------- Comment #2 from victor dot pasko at gmail dot com 2010-07-13 09:27 ------- OK test PASSED after adding -Wl,--whole-archive -lpthread -Wl,--no-whole-archive
But there is some strange warning: % gfortran -static bug.f90 -lgomp -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -lrt /usr/lib/../lib64/libpthread.a(sem_open.o): In function `sem_open': (.text+0x448): warning: the use of `mktemp' is dangerous, better use `mkstemp' vpa...@nstmklel143 /nfs/ins/proj/mkl/builds2/vpasko/10.3b1_lnx/mkl/examples/dftf % ./a.out sssss sssss 8 TEST PASS -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44927