Comment #0 by jason.brian.king — 2014-07-05T00:33:34Z
For some time, the -mt flag on Sun's compilers expands to -D_REENTRANT -lthread.
As of Solaris 10, libthread is merely a filter library (basically a compatibility shim) as all the threading functionality now resides inside libc. At the same time (effectively), the threading model was unified. As such, neither flag (nor the -mt flag) is needed while _linking_.
-D_REENTRANT will still be needed while compiling and C/C++ source to get mt-enabled symbol definitions (e.g. a mt errno definition), but is not needed for D sources (as long as the mt definition is used in the .d file).
Comment #1 by jason.brian.king — 2014-07-05T00:41:12Z