www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13048] New: Solaris no longer needs -mt during linking


          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

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