The General options category lets you specify various options for
the linker.
Figure 1. The default dialog for the General options
category.
Field descriptions for the General options category
-
Generate map file
- When set, the IDE prints a link map to the build
console.
-
Stack size
- Define the size of the stack as the number of bytes (in decimal) you want for
the stack.
-
Export symbol options
- Define the level of final stripping for your binary, ranging from exporting all
symbols, to only removing the debugger symbols, to removing all of them.
-
Build goal name
- Specify the output filename for an application or library project. The name you
specify in this field forces the library's shared-object name to match.
By default, a generated application has the same name as the project it's
built from. A library has prefix of lib and a suffix of
.a or .so after the project
name. In addition, debug variants of applications and libraries have a
suffix of _g.
-
Other options
- Specify any other command-line options that aren't already covered on the Linker
tab. For more information about the linker's options, see the entry for
ld
in the Utilities Reference.
-
Linker options
- Shows the general linker options that you specified.
Note:
When a shared library is created, its name is documented in a special dynamic
section, and when you link against this library, your application will look for that
name.
When you perform a make install, the .so is
copied to .so.1, and a .so symbolic link
is created to point to it. You'll also notice that .so will get
the right version. If you install a .so.2 (where the
.so points to it), your old version 1 clients can
still run.