less -> more
[unix-history] / usr / src / usr.bin / ranlib / ranlib.1
CommitLineData
3f49374c 1.\" @(#)ranlib.1 6.2 (Berkeley) %G%
14b55ac4 2.\"
670192ab 3.TH RANLIB 1 ""
14b55ac4
KM
4.AT 3
5.SH NAME
6ranlib \- convert archives to random libraries
7.SH SYNOPSIS
8.B ranlib
3f49374c
KM
9[
10.B \-t
11] archive ...
14b55ac4
KM
12.SH DESCRIPTION
13.I Ranlib
14converts each
15.I archive
06541c90
KM
16to a form which the loader can load more rapidly.
17.I Ranlib
18does this by adding a table of contents called
3f49374c 19.B __.SYMDEF
14b55ac4 20to the beginning of the archive.
06541c90
KM
21.I Ranlib
22uses
14b55ac4 23.IR ar (1)
06541c90
KM
24to reconstruct the archive, so that sufficient temporary file space must
25be available in the file system which contains the current directory.
3f49374c
KM
26.PP
27If given the
28.B \-t
29option,
30ranlib only "touches" the archives and does not modify them.
31This is useful after copying an archive
32or using the
33.B \-t
34option of
35.IR make (1)
36in order to avoid having
37.IR ld (1)
38complain about
39an \*(lqout of date\*(rq symbol table.
06541c90 40.SH "SEE ALSO"
3f49374c 41ld(1), ar(1), lorder(1), make(1)
14b55ac4
KM
42.SH BUGS
43Because generation of a library by
44.I ar
06541c90 45and randomization of the library by
14b55ac4 46.I ranlib
06541c90
KM
47are separate processes, phase errors are possible. The loader,
48.IR ld ,
49warns when the modification date of a library is more recent than the
50creation date of its dictionary; but this means that you get the
51warning even if you only copy the library.