]> git.proxmox.com Git - qemu.git/commit
configure: properly check if -lrt and -lm is needed
authorNatanael Copa <natanael.copa@gmail.com>
Wed, 12 Sep 2012 09:06:51 +0000 (09:06 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:18 +0000 (21:44 -0500)
commit5d6ad6262b0c43400d60d7db37c0b9b524be3bd3
treef1e21ac7f2bf0a62f907da2f9af25f787b088ffe
parenta63eb7a22731c4b0ec863582231f24c4b32b5969
configure: properly check if -lrt and -lm is needed

Fixes build against uClibc.

uClibc provides 2 versions of clock_gettime(), one with realtime
support and one without (this is so you can avoid linking in -lrt
unless actually needed). This means that the clock_gettime() don't
need -lrt. We still need it for timer_create() so we check for this
function in addition.

We also need check if -lm is needed for isnan().

Both -lm and -lrt are needed for libs_qga.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit 8bacde8d86a09699207d85d4bab06162aed18dc4)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure