Re: [Qemu-devel] [PATCH fix for 2.1 v2] makefile: Fix tools compile

2014-07-01 Thread Paolo Bonzini
Il 01/07/2014 09:47, Alexey Kardashevskiy ha scritto: On 07/01/2014 05:41 PM, Paolo Bonzini wrote: Il 01/07/2014 09:30, Alexey Kardashevskiy ha scritto: The existing test whether "-lm" needs to be included or not is insufficient as it reports false negative on Fedora20/ppc64. This happens becau

Re: [Qemu-devel] [PATCH fix for 2.1 v2] makefile: Fix tools compile

2014-07-01 Thread Alexey Kardashevskiy
On 07/01/2014 05:41 PM, Paolo Bonzini wrote: > Il 01/07/2014 09:30, Alexey Kardashevskiy ha scritto: >> The existing test whether "-lm" needs to be included or not is >> insufficient as it reports false negative on Fedora20/ppc64. >> This happens because sin(0.0) is a constant value which compiler

Re: [Qemu-devel] [PATCH fix for 2.1 v2] makefile: Fix tools compile

2014-07-01 Thread Paolo Bonzini
Il 01/07/2014 09:30, Alexey Kardashevskiy ha scritto: The existing test whether "-lm" needs to be included or not is insufficient as it reports false negative on Fedora20/ppc64. This happens because sin(0.0) is a constant value which compiler can safely throw away and therefore there is no need t

[Qemu-devel] [PATCH fix for 2.1 v2] makefile: Fix tools compile

2014-07-01 Thread Alexey Kardashevskiy
The existing test whether "-lm" needs to be included or not is insufficient as it reports false negative on Fedora20/ppc64. This happens because sin(0.0) is a constant value which compiler can safely throw away and therefore there is no need to add "-lm". As the result, qemu-nbd/qemu-io/qemu-img to