The following library linking options are listed in alphabetical order.
Action |
Option |
Details |
---|---|---|
Allows dynamic static library linking. |
-Bbinding | |
Allows or disallows dynamic libraries for the entire executable. |
-d(y|n) | |
Builds a dynamic shared library instead of an executable file. |
-G | |
Assigns a name to the generated dynamic shared library. |
-hname | |
Tells ld(1) to ignore any LD_LIBRARY_PATH setting. |
-i | |
Adds dir to the list of directories to be searched for libraries. |
-Ldir | |
Adds liblib.a or liblib.so to the linker's library search list. |
-llib | |
Forces inclusion of specific libraries and associated files into compilation and linking. |
-library=llst | |
Compiles and links for multithreaded code. |
-mt | |
Does not build path for libraries into executable. |
-norunpath | |
Builds dynamic library search paths into the executable file. |
-R pathname | |
Indicates which C++ libraries are to be linked statically. |
-staticlib=llst | |
Creates archive libraries. |
-xar | |
Causes libm to return IEEE 754 values for math routines in exceptional cases. |
-xlibmieee | |
Inlines selected libm library routines for optimization. |
-xlibmil | |
Uses library of optimized math routines. |
-xlibmopt | |
Links with the specified, Sun-supplied, licensed libraries. |
-xlic_lib=llst | |
Disables linking with default system libraries. |
-xnolib | |
Cancels -xlibmil on the command line. |
-xnolibmil | |
Does not use the math routine library. |
-xnolibmopt | |
Forces fatal error if relocations remain against non-writable, allocatable sections. |
-ztext |