less -> more
[unix-history] / usr / src / usr.bin / lorder / lorder.1
CommitLineData
ca2d1bb1
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
6a67e45c 5.\" @(#)lorder.1 6.1 (Berkeley) %G%
ca2d1bb1 6.\"
6a67e45c 7.TH LORDER 1 ""
ca2d1bb1
KM
8.UC 4
9.SH NAME
10lorder \- find ordering relation for an object library
11.SH SYNOPSIS
12.B lorder
13file ...
14.SH DESCRIPTION
15The input
16is one or more object or library archive (see
17.IR ar (1))
18.I files.
19The standard output
20is a list of pairs of object file names,
21meaning that the first file of the pair refers to
22external identifiers defined in the second.
23The output may be processed by
24.IR tsort (1)
25to find an ordering of
26a library suitable for one-pass access by
27.IR ld (1).
28.PP
29This brash one-liner intends to build a new library
30from existing `.o' files.
31.IP
32ar cr library \`\|lorder *.o | tsort\`
33.PP
34The need for lorder may be vitiated by use of
35.IR ranlib (1),
36which converts an ordered archive into a randomly
37accessed library.
38.SH FILES
39*symref, *symdef
40.br
41nm(1), sed(1), sort(1), join(1)
42.SH "SEE ALSO"
43tsort(1),
44ld(1),
45ar(1),
46ranlib(1)
47.SH BUGS
48The names of object files, in and out of libraries, must end with `.o';
49nonsense results otherwise.