[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

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 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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]