| Main index | Section 1 | 日本語 | Options |
The output is normally used with tsort(1) when a library is created to determine the optimum ordering of the object modules so that all references may be resolved in a single pass of the loader.
Similarly, when linking static binaries, lorder and tsort(1) can be used to sort libraries in order of dependency.
While contemporary linkers no longer require the use of lorder, it is provided for the benefit of legacy code bases and build systems which still insist on it.
ar cr library.a `lorder ${OBJS} | tsort`
cc -o foo ${OBJS} `lorder ${STATIC_LIBS} | tsort`
| LORDER (1) | February 27, 2024 |
| Main index | Section 1 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The wonderful thing about standards is that there are so many of them to choose from. | ” |
| — Grace Murray Hopper | ||