diff options
author | Eric Blake <eblake@redhat.com> | 2012-08-14 11:36:38 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-08-14 15:33:10 -0600 |
commit | c606671aaad10a9bc87f226bc473a091e00a9629 (patch) | |
tree | ec8ba2693e20fe6c65b5c597477c54f5d80da2c9 /bootstrap.conf | |
parent | network: merge relevant virtualports rather than choosing one (diff) | |
download | libvirt-c606671aaad10a9bc87f226bc473a091e00a9629.tar.gz libvirt-c606671aaad10a9bc87f226bc473a091e00a9629.tar.bz2 libvirt-c606671aaad10a9bc87f226bc473a091e00a9629.zip |
random: link with -lm when needed
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 virRandomBits(10) with code that will
default to virRandomInt(1024) on default SELinux settings).
* .gnulib: Update to latest, for ldexp.
* bootstrap.conf (gnulib_modules): Import ldexp.
* src/Makefile.am (libvirt_util_la_CFLAGS): Link with -lm when
needed.
* src/util/virrandom.c (virRandomInt): Optimize powers of 2.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index a4e1c2fa1..a6cfe24c1 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -61,6 +61,7 @@ intprops ioctl isatty largefile +ldexp listen localeconv maintainer-makefile |