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

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