Go to the first, previous, next, last section, table of contents.
The libtool
script is generated by ltconfig
(see section Configuring libtool). Ever since libtool version 0.7, this script
simply sets shell variables, then sources the libtool backend,
ltmain.sh
.
Here is a listing of each of these variables, and how they are used
within ltmain.sh
:
- Variable: AR
-
The name of the system library archiver.
- Variable: LD
-
The name of the linker that libtool should use internally for reloadable
linking and possibly shared libraries.
- Variable: LTCONFIG_VERSION
-
This is set to the version number of the
ltconfig
script, to
prevent mismatches between the configuration information in
libtool
, and how that information is used in ltmain.sh
.
- Variable: RANLIB
-
Set to the name of the ranlib program, if any.
- Variable: allow_undefined_flag
-
The flag that is used by `archive_cmds' in order to declare that
there will be unresolved symbols in the resulting shared library.
Empty, if no such flag is required. Set to `unsupported' if there
is no way to generate a shared library with references to symbols that
aren't defined in that library.
- Variable: archive_cmds
-
- Variable: old_archive_cmds
-
Commands used to create shared and static libraries, respectively.
- Variable: build_libtool_libs
-
Whether libtool should build shared libraries on this system. Set to
`yes' or `no'.
- Variable: build_old_libs
-
Whether libtool should build static libraries on this system. Set to
`yes' or `no'.
- Variable: export_dynamic_flag
-
Compiler link flag that allows a dlopened shared library to reference
symbols that are defined in the program.
- Variable: finish_cmds
-
Commands to tell the dynamic linker how to find shared libraries in a
specific directory.
- Variable: hardcode_action
-
Either `immediate' or `relink', depending on whether shared
library paths can be hardcoded into executables before they are installed,
or if they need to be relinked.
- Variable: hardcode_direct
-
Set to `yes' or `no', depending on whether the linker
hardcodes directories if a library is directly specified on the command
line (such as `dir/libname.a').
- Variable: hardcode_libdir_flag_spec
-
Flag to hardcode a libdir variable into a binary, so that the
dynamic linker searches libdir for shared libraries at runtime.
- Variable: hardcode_libdir_separator
-
If the compiler only accepts a single hardcode_libdir_flag, then
this variable contains the string that should separate multiple
arguments to that flag.
- Variable: hardcode_minus_L
-
Set to `yes' or `no', depending on whether the linker
hardcodes directories specified by `-L' flags into the resulting
executable.
- Variable: hardcode_runpath_var
-
Set to `yes' or `no', depending on whether the linker
hardcodes directories by writing the contents of `$runpath_var'
into the resulting executable.
- Variable: hardcode_shlibpath_var
-
Set to `yes' or `no', depending on whether the linker
hardcodes directories by writing the contents of `$shlibpath_var'
into the resulting executable. Set to `unsupported' if directories
specified by `$shlibpath_var' are searched at run time, but not at
link time.
- Variable: host
-
- Variable: host_alias
-
For information purposes, set to the specified and canonical names of
the system that libtool was configured for.
- Variable: library_names_spec
-
A list of shared library names. The first is the name of the file,
the rest are symbolic links to the file. The name in the list is
the file name that the linker finds when given `-lname'.
- Variable: link_static_flag
-
Linker flag (passed through the C compiler) used to prevent dynamic
linking.
- Variable: pic_flag
-
Any additional compiler flags for building library object files.
- Variable: postinstall_cmds
-
- Variable: old_postinstall_cmds
-
Commands run after installing a shared or static library, respectively.
- Variable: reload_cmds
-
- Variable: reload_flag
-
Commands to create a reloadable object.
- Variable: runpath_var
-
The environment variable that tells the linker which directories to
hardcode in the resulting executable.
- Variable: shlibpath_var
-
The environment variable that tells the dynamic linker where to find
shared libraries.
- Variable: soname_spec
-
The name coded into shared libraries, if different from the real name of
the file.
- Variable: striplib
-
- Variable: old_striplib
-
Programs to strip shared and static libraries, respectively.(11)
- Variable: version_type
-
The library version numbering type. One of `libtool',
`linux', `osf', `sunos', or `none'.
- Variable: wl
-
The C compiler flag that allows libtool to pass a flag directly to the
linker. Used as: `${wl}some-flag'.
Variables ending in `_cmds' contain a semicolon-separated list of
commands that are eval
ed one after another. If any of the
commands return a nonzero exit status, libtool generally exits with an
error message.
Variables ending in `_spec' are eval
ed before being used by
libtool.
Go to the first, previous, next, last section, table of contents.