.TH LORDER 1 .SH NAME lorder \- find ordering relation for an object library .SH SYNOPSIS .B lorder file ... .SH DESCRIPTION The input is one or more object or library archive (see .IR ar (1)) .IR file s. 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 .IR tsort (1) to find an ordering of a library suitable for one-pass access by .IR ld (1). .PP This brash one-liner intends to build a new library from existing `.o' files. .IP ar cr library \`\|lorder *.o | tsort\` .SH FILES .ta 2i *symref, *symdef temporary files .SH "SEE ALSO" ar(1), join(1), ld(1), nm(1), sed(1), sort(1), tsort(1) .SH BUGS The names of object files, in and out of libraries, must end with `.o'; nonsense results otherwise.