Allow or disallow dynamic libraries for the entire executable
SPARC: 77/90 x86:77
-dy: Yes, allow dynamically bound libraries (allow shared libraries).
-dn: No, do not allow dynamically bound libraries (no shared libraries).
The default, if not specified, is -dy.
Unlike -Bx, this option applies to the whole executable and need appear only once on the command line.
-dy|-dn are loader and linker options. If you compile and link in separate steps with these options, then you need the same option in the link step.
In a 64-bit Solaris environment, many system libraries are not available only as shared dynamic libraries. These include libm.so and libc.so (libm.a and libc.a are not provided). This means that -dn and -Bstatic may cause linking errors in 64-bit Solaris environments. Applications must link with the dynamic libraries in these cases.