However, It is a little different.( -lgomp and configure line)
MKL=" ? -L$@{MKL_LIB_PATH@} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
? ? ? ?-Wl,--start-group ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
? ? ? ? ? ? ? ?$@{MKL_LIB_PATH@}/libmkl_gf_lp64.a ? ? ? ?\
? ? ? ? ? ? ? ?$@{MKL_LIB_PATH@}/libmkl_gnu_thread.a ? ? \
? ? ? ? ? ? ? ?$@{MKL_LIB_PATH@}/libmkl_core.a ? ? ? ? ? \
? ? ? ?-Wl,--end-group ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
? ? ? ?-lgomp -lpthread"
./configure --with-blas="$MKL" --with-lapack="$MKL"
...
Thanks for all your answers. I read carefully the userguide and the
admin guide. I now understand that with gfortran I need to use
libmkl_gf_lp64 and libmkl_gnu_thread, either shared or static.
Unfortunately for MKL version 10.1.1.019, libmkl_gnu_thread links
against the symbol "_gfortran_internal_malloc64" which was present in
gcc-4.1 and is not present anymore in gcc-4.3.