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 /.gnulib | |
parent | 6a3691b7436505835989e7464a50c8c8bd542d75 (diff) | |
download | libvirt-c606671aaad10a9bc87f226bc473a091e00a9629.tar.gz |
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 '.gnulib')
m--------- | .gnulib | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/.gnulib b/.gnulib -Subproject dbd914496c99c52220e5f5ba4121d6cb55fb3be +Subproject 271dd74fdf54ec2a03e73a5173b0b5697f6088f |