–Bdynamic causes the link editor to look for files named libx.so and then for files named libx.a when given the -lx option.
–Bstatic causes the link editor to look only for files named libx.a. This option may be specified multiple times on the command line as a toggle. This option and its argument are passed to ld(1).
Many system libraries, such as libc, are only available as dynamic libraries in the Solaris 64-bit compilation environment. Therefore, do not use -Bstatic as the last toggle on the command line.
This option and its argument are passed to the linker.