Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

join(1)

ld(1)

nm(1)

ranlib(1)

sed(1)

sort(1)

tsort(1)

lorder(1)

Name

lorder − determine relation for an object library

Syntax

lorder file...

Description

The input is one or more object or library archive files.  For further information, see ar(.). 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() to find an ordering of a library suitable for one-pass access by ld(.).

This one-liner intends to build a new library from existing ‘.o’ files. 

ar cr library `lorder *.o | tsort`

The use of lorder() is unnecessary when you use ranlib(,), which converts an ordered archive into a randomly accessed library.

Restrictions

The names of object files, in and out of libraries, must end with ‘.o’; nonsense results otherwise. 

Files

*symref, *symdef

See Also

ar(1), join(1), ld(1), nm(1), ranlib(1), sed(1), sort(1), tsort(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026