ranlib —
update
archive symbol tables
ranlib |
[-D]
[-t]
archive... |
The
ranlib utility is used to update an existing
archive symbol table in an
ar(1)
archive, or to add an archive symbol table to an archive lacking one.
The
ranlib utility supports the following options:
-
-
- -D
- Use zeros for the mtime, uid and gid fields, and use mode
0644 for the file mode field for all archive member headers. This ensures
that checksums on the resulting archives are reproducible when member
contents are identical.
-
-
- -t
- This option is accepted, but is ignored.
-
-
- -V
- Print a version identifier and exit.
To update the archive symbol table for an archive
lib.a, use:
ranlib lib.a
The
ranlib utility exits 0 on success,
and >0 if an error occurs.
ar(1),
ld(1),
archive(3),
elf(3),
ar(5)
The
ranlib command first appeared in AT&T UNIX
Version 7.
In
FreeBSD 8.0,
Kai
Wang
<
kaiw@FreeBSD.org>
reimplemented
ranlib using the
Streaming Archive Library (libarchive,
-larchive) and the
ELF Access Library
(libelf, -lelf).