diff options
author | imp <imp@FreeBSD.org> | 2006-04-27 15:48:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-04-27 15:48:54 +0000 |
commit | 2bb461105df66bc63d4f980d9c31d7cc6b69a841 (patch) | |
tree | 65931439b39e85732bf14767a1b3a28d05f1ca2f /usr.bin/lorder | |
parent | b1d1b86b31a762636306b02dfe37cdc0dffb50d4 (diff) | |
download | FreeBSD-src-2bb461105df66bc63d4f980d9c31d7cc6b69a841.zip FreeBSD-src-2bb461105df66bc63d4f980d9c31d7cc6b69a841.tar.gz |
ru@ recently changed lorder to support library archives. Document
this new feature prominently. Bump date while I'm here.
Diffstat (limited to 'usr.bin/lorder')
-rw-r--r-- | usr.bin/lorder/lorder.1 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/lorder/lorder.1 b/usr.bin/lorder/lorder.1 index 6cced8f..20ac7e0 100644 --- a/usr.bin/lorder/lorder.1 +++ b/usr.bin/lorder/lorder.1 @@ -32,7 +32,7 @@ .\" @(#)lorder.1 8.2 (Berkeley) 4/28/95 .\" $FreeBSD$ .\" -.Dd April 28, 1995 +.Dd April 27, 2006 .Dt LORDER 1 .Os .Sh NAME @@ -47,6 +47,7 @@ The utility uses .Xr nm 1 to determine interdependencies in the list of object files +and library archives specified on the command line. The .Nm @@ -58,9 +59,16 @@ The output is normally used with 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. +.Pp +When linking static binaries, +.Nm +and +.Xr tsort 1 +can be used to properly order library archives automatically. .Sh EXAMPLES .Bd -literal -offset indent ar cr library.a `lorder ${OBJS} | tsort` +cc -o foo ${OBJS} `lorder ${STATIC_LIBS} | tsort` .Ed .Sh SEE ALSO .Xr ar 1 , |