From da5d5a5d4e28bdf15c5db6fac73dd3005bf89c72 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 Apr 2008 05:36:18 +0000 Subject: [PATCH] added option to include librt (for 64 bit linux systems) --- Jamfile | 7 ++++--- docs/building.html | 10 ++++++++++ docs/building.rst | 6 ++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index 4caec8e60..9b259de8d 100755 --- a/Jamfile +++ b/Jamfile @@ -76,10 +76,9 @@ rule linking ( properties * ) } # clock_gettime on linux requires librt - if linux in $(properties) + if yes in $(properties) { -# when do one need to link against librt? -# result += rt ; + result += rt ; } if 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 off : TORRENT_DISABLE_GEO_IP ; diff --git a/docs/building.html b/docs/building.html index 5f4977f4f..68d6a9613 100644 --- a/docs/building.html +++ b/docs/building.html @@ -231,6 +231,16 @@ logging of the DHT protocol traffic. +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 diff --git a/docs/building.rst b/docs/building.rst index 18b735ba5..cbcf1dd31 100644 --- a/docs/building.rst +++ b/docs/building.rst @@ -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 |