| 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.
| “ | Do you laugh when the waiter drops a tray full of dishes? Unix weenies do. They're the first ones to laugh at hapless users, trying to figure out an error message that doesn't have anything to do with what they just typed. | ” |
| — The Unix Haters' handbook | ||