Sun Studio 12 Update 1: C++ User's Guide

Interactions

the -mt option must be used when compiling and linking files that use __thread.