OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [man/] [ldconfig.8] - Rev 1771

Go to most recent revision | Compare with Previous | Blame | View Log

.TH ldconfig 8 "14 March 1998"
.SH NAME
ldconfig \- determine run-time link bindings
.SH SYNOPSIS
ldconfig
.RB [ \-DvqnNX ]
.RB [ \-f\ conf ]
.RB [ \-C\ cache ]
.RB [ \-r\ root ]
.IR directory \ ...
.PD 0
.PP
.PD
ldconfig
.B \-l
.RB [ \-Dvq ]
.IR library \ ...
.PD 0
.PP
.PD
ldconfig
.B \-p
.SH DESCRIPTION
.B ldconfig
creates the necessary links and cache (for use by the run-time linker,
.IR ld.so )
to the most recent shared libraries found in the directories specified
on the command line, in the file
.IR /etc/ld.so.conf ,
and in the trusted directories
.RI ( /usr/lib
and
.IR /lib ).
.B ldconfig
checks the header and file names of the libraries it encounters when
determining which versions should have their links updated.
.B ldconfig
ignores symbolic links when scanning for libraries. 
.PP
.B ldconfig
will attempt to deduce the type of ELF libs (ie. libc5 or libc6/glibc)
based on what C libs if any the library was linked against, therefore when
making dynamic libraries, it is wise to explicitly link against libc (use -lc).
.PP
Some existing libs do not contain enough information to allow the deduction of 
their type, therefore the 
.IR /etc/ld.so.conf 
file format allows the specification of an expected type.  This is 
.B only
used for those ELF libs which we can not work out. The format 
is like this "dirname=TYPE", where type can be libc4, libc5 or libc6.
(This syntax also works on the command line).  Spaces are 
.B not 
allowed.  Also see the 
.B -p 
option.
.PP 
Directory names containing an
.B = are no longer legal
unless they also have an expected type specifier.
.PP
.B ldconfig
should normally be run by the super-user as it may require write 
permission on some root owned directories and files.
It is normally run automatically at bootup, from /etc/rc, or manually
whenever new DLL's are installed.
.SH OPTIONS
.TP
.B \-D
Debug mode.
Implies
.B \-N
and
.BR \-X .
.TP
.B \-v
Verbose mode.
Print current version number, the name of each directory as it
is scanned and any links that are created.
Overrides quiet mode.
.TP
.B \-q
Quiet mode.
Don't print warnings.
.TP
.B \-n
Only process directories specified on the command line.
Don't process the trusted directories
.RI ( /usr/lib
and
.IR /lib )
nor those specified in
.IR /etc/ld.so.conf .
Implies
.BR \-N .
.TP
.B \-N
Don't rebuild the cache.
Unless
.B \-X
is also specified, links are still updated.
.TP
.B \-X
Don't update links.
Unless
.B \-N
is also specified, the cache is still rebuilt.
.TP
.B \-f conf
Use
.B conf
instead of
.IR /etc/ld.so.conf .
.TP
.B \-C cache
Use
.B cache
instead of
.IR /etc/ld.so.cache .
.TP
.B \-r root
Change to and use
.B root
as the root directory.
.TP
.B \-l
Library mode.
Manually link individual libraries.
Intended for use by experts only.
.TP
.B \-p
Print the lists of directories and candidate libraries stored in
the current cache.
.SH EXAMPLES
In the bootup file
.I /etc/rc
having the line
.RS

/sbin/ldconfig -v

.RE
will set up the correct links for the shared binaries and rebuild
the cache.
.TP
On the command line
.RS

# /sbin/ldconfig -n /lib

.RE
as root after the installation of a new DLL, will properly update the
shared library symbolic links in /lib.

.SH FILES
.PD 0
.TP 20
.B /lib/ld.so
execution time linker/loader
.TP 20
.B /etc/ld.so.conf
File containing a list of colon, space, tab, newline, or comma spearated
directories in which to search for libraries.
.TP 20
.B /etc/ld.so.cache
File containing an ordered list of libraries found in the directories
specified in
.BR /etc/ld.so.conf .
.TP
.B lib*.so.version
shared libraries
.PD
.SH SEE ALSO
.BR ldd (1),
.BR ld.so (8).
.SH BUGS
.LP
.BR ldconfig 's
functionality, in conjunction with
.BR ld.so ,
is only available for executables compiled using libc version 4.4.3 or greater.
.PP
.BR ldconfig ,
being a user process, must be run manually and has no means of dynamically
determining and relinking shared libraries for use by
.BR ld.so
when a new DLL is installed.
.SH AUTHORS
David Engel and Mitch D'Souza.

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.