D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13048 - Solaris no longer needs -mt during linking
Summary: Solaris no longer needs -mt during linking
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Solaris
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks: 8859
  Show dependency treegraph
 
Reported: 2014-07-05 00:33 UTC by Jason King
Modified: 2018-10-10 21:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jason King 2014-07-05 00:33:34 UTC
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 2 Nathan S. 2018-10-10 21:51:55 UTC
Fixed by PR #3718 but not auto-closed.