UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: layersAppendix B
Obsolete Commands
Next: Reference: lptest
 

lorder

/usr/ccs/bin/lorder objfiles

Take object filenames (e.g., files with .o suffix) and output a list of related pairs. The first file listed includes references to external identifiers that are defined in the second. lorder output can be sent to tsort to make the ordering of files in an archive more efficient for loading.

Example

To produce an ordered list of object files and replace them in the library libmyprog.a (provided they are newer):

ar cru libmyprog.a `lorder *.o | tsort`


Previous: Reference: layersUNIX in a Nutshell: System V EditionNext: Reference: lptest
Reference: layersBook IndexReference: lptest

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System