JavaSolarisCommunitiesAbout SunHow to BuyMy AccountCartUnited StatesWorldwide
Sun Microsystems Documentation
docs.sun.com
Browse Documentation Titles
Browse Product Documentation
Help

All Linker and Library Options

Option Language Meaning
-B C C++ F95 Specifies whether a library binding for linking is symbolic, dynamic (shared), or static (nonshared).
-d C C++ F95 Allows or disallows dynamic libraries for the entire executable.
-G C C++ F95 Build a dynamic shared library instead of an executable file.
-h C C++ F95 Assign a name to the generated shared dynamic library.
-i C C++ Tells the linker, ld(1), to ignore any LD_LIBRARY_PATH setting.
-L C C++ F95 Adds a path to the library search paths.
-l C C++ F95 Adds dynamic or static library to linker's list of search libraries.
-library C++ Incorporates specified compiler-provided libraries into compilation and linking.
-mc C C++ Removes duplicate strings from the .comment section of the object file.
-mr C C++ Removes all strings from the .comment section of the object file and, if a substitute string is supplied, places the substitute in that section.
-mt C C++ F95 Indicates compilation and linking for multithreaded code.
-norunpath C++ F95 Does not build the path for shared libraries into the executable.
-Q C++ F95 Passes compiler options to a specific phase of the compilation process.
-Q C Emits identification information to the output file.
-R C C++ F95 Builds dynamic library search paths into the executable file.
-staticlib C++ Indicates which C++ libraries specified by the -library option (including its defaults), by the -xlang option, and by the -xia option are to be linked statically.
-xar C++ Creates archive libraries.
-xbuiltin C C++ Enables or disables better optimization of standard library calls.
-xcode C C++ F95 Specifies code address space.
-xia F95 Links the appropriate interval arithmetic libraries and sets a suitable floating-point environment.
-xlang C++ F95 Includes the appropriate runtime libraries and ensures the proper runtime environment for the specified language.
-xldscope C C++ Changes the default linker scoping for the definition of extern symbols.
-xlibmieee C C++ Causes libm to return IEEE 754 values for math routines in exceptional cases.
-xlibmil C C++ F95 Inlines selected library routines for optimization.
-xlibmopt C C++ F95 Uses a library of optimized math routines.
-xnativeconnect C C++ Includes interface information inside object file and subsequent shared libraries so that the shared library can interface with Java.
-xnolib C C++ F95 Disables linking with default system libraries.
-xnolibmil C C++ F95 Cancels -xlibmil on the command line.
-xnolibmopt C C++ F95 Does not use the math routine library by turning off any previously specified -xlibmopt options.
-xstrconst C Inserts string literals into the read-only data section of the text segment instead of the default data segment.
-ztext F95 Make no library with relocations.

ContactAbout SunNewsEmploymentSite MapPrivacyTerms of UseTrademarksCopyright Sun Microsystems, Inc.