digitalmars.D.bugs - [Issue 13048] New: Solaris no longer needs -mt during linking
- via Digitalmars-d-bugs (24/24) Jul 04 2014 https://issues.dlang.org/show_bug.cgi?id=13048
https://issues.dlang.org/show_bug.cgi?id=13048 Issue ID: 13048 Summary: Solaris no longer needs -mt during linking Product: D Version: D2 Hardware: x86 OS: Solaris Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: jason.brian.king gmail.com Blocks: 8859 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). --
Jul 04 2014