LORDER(1) — Unix Programmer’s Manual
NAME
lorder − find ordering relation for an object library
SYNOPSIS
lorder file ...
DESCRIPTION
Lorder reads one or more object or library archive files and produces a list of pairs of object filenames. The first file of the pair refers to external identifiers defined in the second. You can process the output with tsort(1) to find an ordering of a library suitable for one-pass access by ld(1). (See ar(1) for information on library archive files.)
The need for lorder may be vitiated by use of ranlib(1), which converts an ordered archive into a randomly accessed library.
EXAMPLE
This brash one-liner intends to build a new library from existing ‘.o’ files.
ar cr library `lorder ∗.o |
FILES
∗symref, ∗symdef
nm(1), sed(1), sort(1), join(1)
SEE ALSO
tsort(1), ld(1), ar(1), ranlib(1)
BUGS
The names of object files, in and out of libraries, must end with ‘.o’. Otherwise, nonsense results.
4th Berkeley Distribution — April 29, 1985