Give lorder one or more object or library archive (see ar.1v filenames, and it lists pairs of object file names -- meaning that the first file of the pair refers to external identifiers defined in the second -- to the standard output. lorder's 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`
The ranlib.1 command converts an ordered archive into a randomly accessed library and makes lorder unnecessary.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97