For the following library linking options, the most useful are listed first.
Table 3-6 Library Options|
Action |
Option |
Details |
|---|---|---|
|
Bind as dynamic or static next library listed on command. | -Bx | |
|
Allow or disallow dynamic libraries for executable. | -dx | |
|
Build a dynamic shared library. | -G | |
|
Search for libraries in this directory first. | -Ldir | |
|
Link with library libx. | -lx | |
|
Link with the SunWorkShop Performance Library | -xlic_lib=sunperf | |
|
Multithread safe libraries, low level threads. | -mt | |
|
No automatic libraries. | -nolib | |
|
No inline templates. | -nolibmil | |
|
No run path in executable. | -norunpath | |
|
Library--do not make library if relocations remain. | -ztext |