[libvirt] [PATCH] random: link with -lm when needed

Eric Blake eblake at redhat.com
Tue Aug 14 20:30:14 UTC 2012


On 08/14/2012 02:02 PM, Laine Stump wrote:
> On 08/14/2012 03:44 PM, Eric Blake wrote:
>> Use of ldexp() requires -lm on some platforms; use gnulib to determine
>> this for our makefile.  Also, optimize virRandomInt() for the case
>> of a power-of-two limit (actually rather common, given that Daniel
>> has a pending patch to replace virRandomBis(10) with code that will
>> default to virRandomInt(1024) on default SELinux settings).
> 
> ACK.

Thanks; will push shortly.

-- 
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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120814/f9a1eedc/attachment-0001.sig>


More information about the libvir-list mailing list