[libvirt] [PATCH] Don't link with -lrt on OpenBSD

Eric Blake eblake at redhat.com
Tue Sep 4 17:31:31 UTC 2012


On 09/04/2012 11:20 AM, Jasper Lievisse Adriaanse wrote:
>> In fact, gnulib already provides the LGPLv2+ clock-time module for
>> clock_gettime and clock_settime, with an appropriate link library
>> $(LIB_CLOCK_GETTIME) that is set to -lrt when necessary.  Does this
>> patch work for you?
> Yep, this seems to work just fine.
>  
>> From d74e5a4dfc434d3a1d01856d013a7f50d910fa95 Mon Sep 17 00:00:00 2001
>> From: Eric Blake <eblake at redhat.com>
>> Date: Tue, 4 Sep 2012 10:57:25 -0600
>> Subject: [PATCH] build: use correct libraries for clock_gettime
>>
>> On OpenBSD, clock_gettime() exists in libc rather than librt, and
>> blindly linking with -lrt made the build fail.  Gnulib already
>> did the work for determining which libraries to use, so we should
>> reuse that work rather than doing it ourselves.

Thanks; I've pushed this one.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120904/aa2c8c4a/attachment-0001.sig>


More information about the libvir-list mailing list