kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc
@ 2009-01-14 14:03 Natanael Copa
  2009-01-15 16:37 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Natanael Copa @ 2009-01-14 14:03 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 295 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.

It applies to the just released 83 release as well.

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] 2+ messages in thread

end of thread, other threads:[~2009-01-15 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14 14:03 [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc Natanael Copa
2009-01-15 16:37 ` Avi Kivity

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).