BSD 4_1_snap development
[unix-history] / usr / man / man1 / lorder.1
CommitLineData
e3758c96
C
1.TH LORDER 1
2.UC 4
3.SH NAME
4lorder \- find ordering relation for an object library
5.SH SYNOPSIS
6.B lorder
7file ...
8.SH DESCRIPTION
9The input
10is one or more object or library archive (see
11.IR ar (1))
12.I files.
13The standard output
14is a list of pairs of object file names,
15meaning that the first file of the pair refers to
16external identifiers defined in the second.
17The output may be processed by
18.IR tsort (1)
19to find an ordering of
20a library suitable for one-pass access by
21.IR ld (1).
22.PP
23This brash one-liner intends to build a new library
24from existing `.o' files.
25.IP
26ar cr library \`\|lorder *.o | tsort\`
27.PP
28The need for lorder may be vitiated by use of
29.IR ranlib (1),
30which converts an ordered archive into a randomly
31accessed library.
32.SH FILES
33*symref, *symdef
34.br
35nm(1), sed(1), sort(1), join(1)
36.SH "SEE ALSO"
37tsort(1),
38ld(1),
39ar(1),
40ranlib(1)
41.SH BUGS
42The names of object files, in and out of libraries, must end with `.o';
43nonsense results otherwise.