find ordering relation for an object library
lorder file ...
is one or more object or library archive files (see
The usual 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.
The output can be processed by
to find an ordering of a library suitable for one-pass access by
The link editor
can do multiple passes over an archive in the portable archive format (see
and does not require that
be used when building an archive.
lorder can, 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`
lorder accepts as input any object or archive file,
regardless of its suffix, provided there is more than one input file.
If there is only a single input file, its suffix must be .o.
TMPDIR is usually /usr/tmp but can be
re-defined by setting the environment variable TMPDIR
is not part of any
currently supported standard;
it was developed by UNIX System Laboratories, Inc. and
is used by permission.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003