LORDER(1) — UNIX 3.0
NAME
lorder − find ordering relation for an object library
SYNOPSIS
lorder file ...
DESCRIPTION
The input is one or more object or library archive files (see ar(1)). The standard output is a list of pairs of object file names, meaning that 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 one-pass access by ld(1).
This brash one-liner intends to build a new library from existing .o files.
ar cr library `lorder ∗.o | tsort`
FILES
∗symref, ∗symdeftemp files
SEE ALSO
BUGS
Object files whose name do not end with .o, even when contained in library archives, are overlooked. Their global symbols and references are attributed to some other file.
May 16, 1980