Sun Studio 12: C User's Guide

B.2.8 -d[y|n]

-dy specifies dynamic linking, which is the default, in the link editor.

-dn specifies static linking in the link editor.

This option and its arguments are passed to ld(1).


Note –

This option causes fatal errors if you use it in combination with dynamic libraries. Most system libraries are only available as dynamic libraries.