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

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

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]