man-pages/man1/lorder.1.html
2021-03-31 01:06:50 +01:00

157 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of LORDER</TITLE>
</HEAD><BODY>
<H1>LORDER</H1>
Section: User Commands (1)<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<BR>BSD mandoc<BR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
<B>lorder</B>
- list dependencies for object files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B></B>
<I>file ...</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B></B>
utility uses
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1)
to determine interdependencies in the list of object files
and library archives
specified on the command line.
The
<B></B>
utility outputs a list of file names where the first file contains a symbol
which is defined by the second file.
<P>
The output is normally used with
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(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.
<P>
When linking static binaries,
<B></B>
and
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(1)
can be used to properly order library archives automatically.
<A NAME="lbAE">&nbsp;</A>
<H2>ENVIRONMENT</H2>
<DL COMPACT>
<P>
<DT id="1"><B>NM</B>
<DD>
Path to the
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1)
binary, defaults to
``<B>nm</B>
''
<DT id="2"><B>NMFLAGS</B>
<DD>
Flags to pass to
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1).
</DL>
<P>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<BLOCKQUOTE>
<PRE>
ar cr library.a `lorder ${OBJS} | tsort`
cc -o foo ${OBJS} `lorder ${STATIC_LIBS} | tsort`
</PRE>
</BLOCKQUOTE>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+ar">ar</A>(1),
<A HREF="/cgi-bin/man/man2html?1+ld">ld</A>(1),
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1),
<A HREF="/cgi-bin/man/man2html?1+ranlib">ranlib</A>(1),
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(1)
<A NAME="lbAH">&nbsp;</A>
<H2>HISTORY</H2>
A
<B></B>
utility appeared in
AT&amp;T System
v7 .
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="6"><A HREF="#lbAE">ENVIRONMENT</A><DD>
<DT id="7"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="8"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="9"><A HREF="#lbAH">HISTORY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:18 GMT, March 31, 2021
</BODY>
</HTML>