lorder(1) lorder(1)
NAME
lorder - find ordering relation for an object library
SYNOPSIS
lorder file...
DESCRIPTION
lorder can be used to determine the ordering relation for one or more
object or library archive files [see ar(1)]. The standard output is a
list of pairs of object file or archive member names; the first file
of the pair refers to external identifiers defined in the second. The
output may be processed by tsort(1) to find an ordering of a library
suitable for onepass access by ld(1). Note that the link editor ld is
capable of multiple passes over an archive in the portable archive
format [see ar(4)] and does not require that lorder be used when
building an archive. The usage of the lorder command may, however,
allow for a 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'
LOCALE
The language of the message texts is governed by the environment vari-
able LCALL, LCMESSAGES or LANG.
When the default is set, the system behaves as if it were not interna-
tionalized, i.e. the message texts are in English. You must change one
of these variables in order to change the language of the message
texts.
Detailed information on the dependencies of the environment variables
and on internationalization in general can be found in the manual
"Reliant UNIX Programmer's Guide: Internationalization - Localiza-
tion". Refer also to environ(5) for information on setting the user
environment.
NOTES
lorder will accept 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.
FILES
TMPDIR/*symref temporary files
MPDIR/*symdef temporary files
TMPDIR is usually /var/tmp but can be redefined by setting
the environment variable TEMPDIR [see tempnam() in
tmpnam(3S)].
Page 1 Reliant UNIX 5.44 Printed 11/98
lorder(1) lorder(1)
SEE ALSO
ar(1), ld(1), tsort(1), tmpnam(3S), ar(4).
Page 2 Reliant UNIX 5.44 Printed 11/98