added documentation about librt

This commit is contained in:
Arvid Norberg 2008-05-15 18:51:19 +00:00
parent df2389219a
commit 9d44707ebf
2 changed files with 14 additions and 0 deletions

View File

@ -174,6 +174,13 @@ will make the executable crash on startup. On Mac OS X, instead build
your release executables with the <tt class="docutils literal"><span class="pre">debug-symbols=on</span></tt> option, and
later strip your executable with <tt class="docutils literal"><span class="pre">strip</span></tt>.</p>
</div>
<div class="warning">
<p class="first admonition-title">Warning</p>
<p class="last">Some linux systems requires linking against <tt class="docutils literal"><span class="pre">librt</span></tt> in order to access
the POSIX clock functions. If you get an error complaining about a missing
symbol <tt class="docutils literal"><span class="pre">clock_gettime</span></tt>, you have to give <tt class="docutils literal"><span class="pre">need-librt=yes</span></tt> on the
bjam command line. This will make libtorrent link against <tt class="docutils literal"><span class="pre">librt</span></tt>.</p>
</div>
<p>The build targets are put in a directory called bin, and under it they are
sorted in directories depending on the toolset and build variant used.</p>
<p>To build the examples, just change directory to the examples directory and

View File

@ -188,6 +188,13 @@ the runtime, but on windows you can do both. Example::
your release executables with the ``debug-symbols=on`` option, and
later strip your executable with ``strip``.
.. warning::
Some linux systems requires linking against ``librt`` in order to access
the POSIX clock functions. If you get an error complaining about a missing
symbol ``clock_gettime``, you have to give ``need-librt=yes`` on the
bjam command line. This will make libtorrent link against ``librt``.
The build targets are put in a directory called bin, and under it they are
sorted in directories depending on the toolset and build variant used.