added option to include librt (for 64 bit linux systems)

This commit is contained in:
Arvid Norberg 2008-04-05 05:36:18 +00:00
parent 57d75e120a
commit da5d5a5d4e
3 changed files with 20 additions and 3 deletions

View File

@ -76,10 +76,9 @@ rule linking ( properties * )
}
# clock_gettime on linux requires librt
if <target-os>linux in $(properties)
if <need-librt>yes in $(properties)
{
# when do one need to link against librt?
# result += <library>rt ;
result += <library>rt ;
}
if <boost>system in $(properties)
@ -159,6 +158,8 @@ rule building ( properties * )
return $(result) ;
}
feature need-librt : no yes : composite propagated link-incompatible ;
feature geoip : off static shared : composite propagated link-incompatible ;
feature.compose <geoip>off : <define>TORRENT_DISABLE_GEO_IP ;

View File

@ -231,6 +231,16 @@ logging of the DHT protocol traffic.</li>
</ul>
</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">need-librt</span></tt></td>
<td><ul class="first last simple">
<li><tt class="docutils literal"><span class="pre">no</span></tt> - this platform does not need to link
against librt to have POSIX time functions.</li>
<li><tt class="docutils literal"><span class="pre">yes</span></tt> - specify this if your linux system
requires you to link against librt.a. This is
typically the case on x86 64 bit systems.</li>
</ul>
</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">zlib</span></tt></td>
<td><ul class="first last simple">
<li><tt class="docutils literal"><span class="pre">system</span></tt> - links against the zlib supplied

View File

@ -230,6 +230,12 @@ Build features:
| | logging of the DHT protocol traffic. |
| | * ``off`` - build without DHT support. |
+------------------------+----------------------------------------------------+
| ``need-librt`` | * ``no`` - this platform does not need to link |
| | against librt to have POSIX time functions. |
| | * ``yes`` - specify this if your linux system |
| | requires you to link against librt.a. This is |
| | typically the case on x86 64 bit systems. |
+------------------------+----------------------------------------------------+
| ``zlib`` | * ``system`` - links against the zlib supplied |
| | with your operating system. |
| | * ``shipped`` - links against the zlib bundled |