Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-21 Thread Blue Swirl
On Tue, Aug 21, 2012 at 6:10 AM, Natanael Copa wrote: > On Mon, 20 Aug 2012 19:53:22 + > Blue Swirl wrote: > >> >> - Do not remove the explicit add of -lm unless Haiku. This was due >> >>to >> >> http://www.mail-archive.com/qemu-devel@nongnu.org/msg102965.html I >> >> am not sure if this

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-21 Thread Natanael Copa
On Mon, 20 Aug 2012 19:53:22 + Blue Swirl wrote: > >> - Do not remove the explicit add of -lm unless Haiku. This was due > >>to > >> http://www.mail-archive.com/qemu-devel@nongnu.org/msg102965.html I > >> am not sure if this is valid, though. > > > > Certainly building a linux-user targe

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Blue Swirl
On Mon, Aug 20, 2012 at 12:43 PM, Peter Maydell wrote: > On 16 August 2012 14:22, Natanael Copa wrote: >> 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 need

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Peter Maydell
On 20 August 2012 15:33, Natanael Copa wrote: > On Mon, Aug 20, 2012 at 3:27 PM, Peter Maydell > wrote: >> The test program is failing to link with this >> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/librt.a(timer_create.o): >> In function `timer_create': >> (.text+0x121): undefi

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Natanael Copa
On Mon, Aug 20, 2012 at 3:27 PM, Peter Maydell wrote: > On 16 August 2012 14:22, Natanael Copa wrote: >> 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 neede

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Peter Maydell
On 16 August 2012 14:22, Natanael Copa wrote: > 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

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Peter Maydell
On 16 August 2012 14:22, Natanael Copa wrote: > 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

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Juan Quintela
Natanael Copa wrote: > 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_c

[Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-16 Thread Natanael Copa
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 func