| Main index | Section 8 | 日本語 | Options |
The hints file is maintained by ldconfig. The directories list to be stored in the hints file is supplied on the command line.
Alternatively to the directories list on the command line, files may be specified; these are expected to contain directories to scan for shared libraries. Each directory's pathname must start on a new line. Blank lines and lines starting with the comment character ‘amp;#’ are ignored.
For security reasons, directories which are world or group-writable or which
are not owned by root produce warning messages and are skipped, unless
the
The
LD_LIBRARY_PATH
environment variable can be used to specify additional
shared library search directories.
LD_LIBRARY_PATH
is a
'amp;:'
separated list of directory paths which are searched by
the dynamic linker
when it needs to load a shared library.
It can be viewed as the run-time
equivalent of the
The following options are recognized by ldconfig:
| | |
| Generate the hints for 32-bit ABI shared libraries on 64-bit systems that support running 32-bit binaries. | |
| | |
| Ignored for backwards compatibility. | |
| | |
| Force writing big-endian binary data to the hints file. The default is to create hints files in the native byte-order of the host. Reading of and merging into hints files preserves the endianness of the existing hints file. | |
| | |
|
Appends pathnames on the command line to the directory list from
the hints file.
This is the default action when no options are given. | |
| | |
| Read and/or update the specified hints file, instead of the standard file. This option is provided primarily for testing. | |
| | |
| Run in insecure mode. The security checks will not be performed. | |
| | |
| Instead of replacing the list of the directories to search with the directories specified on the command line, merge existing list with the specified directories, and write the result to the hints file. | |
| | |
|
List the current list of the directories from the hints file
on the standard output.
The hints file is not modified.
Scan and print all libraries found on the directories list. | |
The historic options
| /var/run/ld-elf.so.hints | Standard hints file for the ELF dynamic linker. |
| /var/run/ld-elf32.so.hints |
Hints file for 32 bit libraries on 64 bit architectures, processed by
ldconfig when invoked with
|
| /etc/ld-elf.so.conf | Optional file with names of directories to be included in the standard hints file when booting to multi-user mode. |
| /usr/local/libdata/ldconfig/* | |
| Additional files with names of directories provided by optional ports or packages. | |
The name 'hints file' is historic from the times when the file also contained hints to the dynamic linker. This functionality is not provided for ELF.
| LDCONFIG (8) | February 28, 2024 |
| Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | What is this horrible fascination with Unix? The operating system of the 1960s, still gaining in popularity in the 1990s. | ” |
| — Donald A. Norman | ||