cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Disabling librt.so dependency

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Aug 2009 22:03:19 +0200 (CEST)

On Wed, 12 Aug 2009, Yuichi Kuroda wrote:

> Hi I'm trying to build a static library for libcurl with minimal dynamic
> dependencies. Currently, when I link in libcurl to my project it complains
> that it can't find the clock_gettime symbol which is apparently found in
> librt.so. Does anyone know how to configure to get rid of this dependency or
> is it a core requirement for libcurl?

If you want to build libcurl without that dependency, you can simply remove
the definition of HAVE_CLOCK_GETTIME_MONOTONIC from lib/config.h and rebuild
it.

-- 
  / daniel.haxx.se
Received on 2009-08-11