Require multithread-safe libraries.
SPARC: 77/90 x86:77
Require linking to multithread-safe libraries. If you do your own low-level thread management (e.g. calls to the libthread library), compiling with -mt prevents conflicts.
Use -mt if you mix C and Fortran, and you manage multithread C coding using the libthread primitives. Before you use your own multi-threaded coding, read the Solaris Multithreaded Programming Guide.
The equivalent of -mt is included automatically with the -autopar, -explicitpar, or -parallel options.
Note the following:
A function subprogram that does I/O should not itself be referenced as part of an I/O statement. Such recursive I/O may cause the program to deadlock with -mt.
In general, do not compile your own multi-threaded coding with -autopar, -explicitpar, or -parallel. The compiler's generated calls to the threads library primitives any the programs own calls may conflict, causing unexpected results.
On a single-processor system, performance may be degraded with the -mt option.