tsort - topological sort [IBM]
tsort file
lorder *.s | tsort # Give library ordering
ar cr libc.a `lorder *.s | tsort`
# Build library
Tsort accepts a file of lines containing ordered pairs and builds a total
ordering from the partial orderings.