Bug 13048 – Solaris no longer needs -mt during linking

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Solaris
Creation time
2014-07-05T00:33:34Z
Last change time
2018-10-10T21:51:55Z
Keywords
pull
Assigned to
No Owner
Creator
Jason King
Blocks
8859

Comments

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
Comment #2 by n8sh.secondary — 2018-10-10T21:51:55Z
Fixed by PR #3718 but not auto-closed.