home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: logname Chapter 2
UNIX Commands
Next: Reference: lp
 

lorder



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 link editing of an archive more efficient.

Example

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



ar cru program_arch `lorder *.o | tsort`


Previous: Reference: logname UNIX in a Nutshell: System V Edition Next: Reference: lp
Reference: logname Book Index Reference: lp

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