Sun Studio 12: C++ User's Guide

A.2.46.1 Interactions

This option accumulates instead of overrides.

It is always safer to put –lx after the list of sources and objects to insure that libraries are searched in the correct order.

Warnings

To ensure proper library linking order, you must use -mt, rather than -lthread, to link with libthread.

See also

–Ldir, -mt, 11.4.8 An Example Application, and Tools.h++ Class Library Reference