aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-08-14 11:36:38 -0600
committerEric Blake <eblake@redhat.com>2012-08-14 15:33:10 -0600
commitc606671aaad10a9bc87f226bc473a091e00a9629 (patch)
treeec8ba2693e20fe6c65b5c597477c54f5d80da2c9 /.gnulib
parentnetwork: merge relevant virtualports rather than choosing one (diff)
downloadlibvirt-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 '.gnulib')
m---------.gnulib0
1 files changed, 0 insertions, 0 deletions
diff --git a/.gnulib b/.gnulib
-Subproject dbd914496c99c52220e5f5ba4121d6cb55fb3be
+Subproject 271dd74fdf54ec2a03e73a5173b0b5697f6088f