qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
@ 2009-01-16  6:54 Natanael Copa
  2009-01-16 19:10 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Natanael Copa @ 2009-01-16  6:54 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

Hi,

I managed to build kvm on/for my uclibc distro, Alpine linux. The qemu
configure script failed to detect if it needed the -lrt ldflag. the
attatched patch fixes the test.

Thanks!

-nc

PS. please CC me as i don't subscribe to the list.

[-- Attachment #2: kvm-82-uclibc.patch --]
[-- Type: text/x-patch, Size: 374 bytes --]

--- kvm-82.orig/qemu/configure	Wed Jan 14 13:40:28 2009
+++ kvm-82/qemu/configure	Wed Jan 14 13:41:28 2009
@@ -1068,7 +1068,10 @@
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
-int main(void) { clockid_t id; return clock_gettime(id, NULL); }
+int main(void) { clockid_t id; timer_t tid;
+	return clock_gettime(id, NULL) + timer_delete(tid); 
+}
+
 EOF
 
 rt=no

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
  2009-01-16  6:54 [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc Natanael Copa
@ 2009-01-16 19:10 ` Anthony Liguori
  2009-01-29 10:42   ` Natanael Copa
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2009-01-16 19:10 UTC (permalink / raw)
  To: qemu-devel, natanael.copa

Natanael Copa wrote:
> Hi,
>
> I managed to build kvm on/for my uclibc distro, Alpine linux. The qemu
> configure script failed to detect if it needed the -lrt ldflag. the
> attatched patch fixes the test.
>
> Thanks!
>
> -nc
>
> PS. please CC me as i don't subscribe to the list.
>   
Please submit this against QEMU SVN, not against a release of KVM.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
  2009-01-16 19:10 ` Anthony Liguori
@ 2009-01-29 10:42   ` Natanael Copa
  2009-01-29 13:36     ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Natanael Copa @ 2009-01-29 10:42 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

On Fri, 2009-01-16 at 13:10 -0600, Anthony Liguori wrote:
> Natanael Copa wrote:
> > Hi,
> >
> > I managed to build kvm on/for my uclibc distro, Alpine linux. The qemu
> > configure script failed to detect if it needed the -lrt ldflag. the
> > attatched patch fixes the test.
> >
> > Thanks!
> >
> > -nc
> >
> > PS. please CC me as i don't subscribe to the list.
> >   
> Please submit this against QEMU SVN, not against a release of KVM.

I created a new patch for your convenience agains current trunk. (even
if the previous patch appled just fine with -p2)

Thanks!

-nc

[-- Attachment #2: qemu-r6469-uclibc.patch --]
[-- Type: text/x-patch, Size: 411 bytes --]

Index: configure
===================================================================
--- configure	(revision 6469)
+++ configure	(working copy)
@@ -1059,7 +1059,10 @@
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
-int main(void) { clockid_t id; return clock_gettime(id, NULL); }
+int main(void) { clockid_t id; timer_t tid;
+	return clock_gettime(id, NULL) + timer_delete(tid); 
+}
+
 EOF
 
 rt=no

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
  2009-01-29 10:42   ` Natanael Copa
@ 2009-01-29 13:36     ` Anthony Liguori
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2009-01-29 13:36 UTC (permalink / raw)
  To: Natanael Copa; +Cc: qemu-devel

Natanael Copa wrote:
> On Fri, 2009-01-16 at 13:10 -0600, Anthony Liguori wrote:
>   
>> Natanael Copa wrote:
>>     
>>> Hi,
>>>
>>> I managed to build kvm on/for my uclibc distro, Alpine linux. The qemu
>>> configure script failed to detect if it needed the -lrt ldflag. the
>>> attatched patch fixes the test.
>>>
>>> Thanks!
>>>
>>> -nc
>>>
>>> PS. please CC me as i don't subscribe to the list.
>>>   
>>>       
>> Please submit this against QEMU SVN, not against a release of KVM.
>>     
>   
Needs a Signed-off-by.

Regards,

Anthony Liguori

> I created a new patch for your convenience agains current trunk. (even
> if the previous patch appled just fine with -p2)
>
> Thanks!
>
> -nc
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-29 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16  6:54 [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc Natanael Copa
2009-01-16 19:10 ` Anthony Liguori
2009-01-29 10:42   ` Natanael Copa
2009-01-29 13:36     ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).