Subject: Re: undefined reference to `clock_gettime' (again)

Re: undefined reference to `clock_gettime' (again)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 14 Dec 2008 15:23:54 +0100 (CET)

On Sun, 14 Dec 2008, Bram Matthys (Syzop) wrote:

> I've already made the ircd use pkg-config to grab the libs, but it seems
> c-ares doesn't provide them all, so it's not of much use then:
>
> syzop_at_vulnscan:~/Unreal3.2/extras/c-ares-1.6.0$ pkg-config --libs

Isn't --static supposed to be used too if you want the required libs for
static linking? -lrt is mention in the "Libs.private" section which according
to the pkg-config man page I read means:

  "This line should list any private libraries in use. Private libraries
   are libraries which are not exposed through your library, but are needed in
   the case of static linking. "

-- 
  / daniel.haxx.se
Received on 2008-12-14