On Fri, Sep 10, 2010 at 10:09:38PM +0100, Paul Howarth wrote:
> On Fri, 10 Sep 2010 14:05:13 -0700
> > I don't have this issue on the other 20 or so OSes I build curl on.
> > Any idea why curl is failing to pick up librt?
> 
> Default linker behaviour was changed from Fedora 13 onwards:
> 
> http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking

Looks like that's the problem. -lrt is added to libcurl, but not the
curl binary, despite it calling clock_gettime(). Does this
(completely untested) patch help?

diff --git a/acinclude.m4 b/acinclude.m4
index 86f7c7b..225fb9d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2145,6 +2145,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
         else
           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
         fi
+        CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
         AC_MSG_RESULT([$curl_cv_gclk_LIBS])
         ac_cv_func_clock_gettime="yes"
         ;;

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to