diff options
author | peter <peter@FreeBSD.org> | 1997-08-22 04:42:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-22 04:42:12 +0000 |
commit | 0c770f97ecae7439592571f489b1a7baa4f03eba (patch) | |
tree | 225d557468b754a1ea121930cbc0697fb4cb6c66 /sbin/ldconfig/ldconfig.8 | |
parent | 042ae4067bba3eae3265578a9102ff76e6dce755 (diff) | |
download | FreeBSD-src-0c770f97ecae7439592571f489b1a7baa4f03eba.zip FreeBSD-src-0c770f97ecae7439592571f489b1a7baa4f03eba.tar.gz |
Add -R (rescan or refresh) option to rescan and rebuild the hints
file based on the previous list of directories stored there which
should overcome a weakness of the '-m' switch which can only add
libs. This is an ideal way of updating the hints list after adding
or removing a shlib since it will remove entries that are gone and
doesn't need to have all the directories spelled out each time.
(eg: rm -f /usr/lib/libtcl75*; ldconfig -R) This only works for
version 2 hints files (which we've been generating for a year or
so) which store the path.
Diffstat (limited to 'sbin/ldconfig/ldconfig.8')
-rw-r--r-- | sbin/ldconfig/ldconfig.8 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sbin/ldconfig/ldconfig.8 b/sbin/ldconfig/ldconfig.8 index 3aee7bd..6f97599 100644 --- a/sbin/ldconfig/ldconfig.8 +++ b/sbin/ldconfig/ldconfig.8 @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: ldconfig.8,v 1.12 1997/02/22 15:46:37 peter Exp $ +.\" $Id: ldconfig.8,v 1.13 1997/07/11 14:45:40 jkh Exp $ .\" .Dd October 3, 1993 .Dt LDCONFIG 8 @@ -37,7 +37,7 @@ .Nd configure the shared library cache .Sh SYNOPSIS .Nm ldconfig -.Op Fl mrsv +.Op Fl Rmrsv .Op Fl f Ar hints_file .Op Ar directory | file Ar ... .Sh DESCRIPTION @@ -90,6 +90,10 @@ is typically run as part of the boot sequence. The following options recognized by .Nm ldconfig: .Bl -tag -width indent +.It Fl R +Rescan the previously configured directories. This opens the previous hints +file and fetches the directory list from the header. Any additional pathnames +on the command line are also processed. .It Fl f Ar hints_file Read and/or update the specified hints file, instead of .Pa /var/run/ld.so.hints . @@ -104,7 +108,8 @@ Directories recorded in the hints file by previous runs of are also rescanned for new shared libraries. .It Fl r List the current contents of the hints file -on the standard output. The hints file is not modified. +on the standard output. The hints file is not modified. The list of +directories stored in the hints file is included. .It Fl s Do not scan the built-in system directory .Pq Dq /usr/lib |