DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

lorder(CP)


lorder -- find ordering relation for an object library

Syntax

lorder file ...

Description

Input for lorder(CP) is one or more object or library archive files (see ar(CP)). 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 tsort(CP) to find an ordering of a library suitable for one-pass access by ld(CP).

The link editor ld can do multiple passes over an archive in the portable archive format (see ar(FP)) and does not require that lorder be used when building an archive. Using 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`

Warning

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.

Files


TMPDIR/*symref
temporary files

TMPDIR/*symdef
temporary files
TMPDIR is usually /usr/tmp but can be re-defined by setting the environment variable TMPDIR (see tempnam(S) in tmpnam(S)).

See also

ar(CP), ar(FP), ld(CP), tsort(CP)

Standards conformance

lorder(CP) is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is used by permission.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005