LORDER(1) SysV LORDER(1)
NAME
lorder - find ordering relation for an object library
SYNOPSIS
lorder file . . .
DESCRIPTION
Input is one or more object or library archive files [see ar(1)].
Standard output is a list of pairs of object file or archive member
names, meaning that the first file of the pair refers to external
identifiers defined in the second. Output may be processed by tsort(1)
to find an ordering of a library suitable for one-pass access by ld(1).
Note that the link editor ld(1) is capable of multiple passes over an
archive in the portable archive format [see ar(4)] and does not require
that lorder(1) be used when building an archive. Using lorder(1) may,
however, allow for a slightly more efficient access of the archive during
the link edit process.
The following example builds a new library from existing .o files.
ar -cr library `lorder *.o tsort`
FILES
TMPDIR/*symref temporary files
TMPDIR/*symdef temporary files
TMPDIR is usually /usr/tmp but can be redefined by setting the
environment variable TMPDIR [see tempnam() in tmpnam(3S)].
CAVEAT
lorder accepts as input any object or archive file, regardless of its
suffix, provided there is more than one input file. If there is but a
single input file, its suffix must be .o.
SEE ALSO
ar(1), ld(1), tsort(1), ar(4).