qemu/configure: correctly detect -lrt ldflag on uclibc
diff mbox

Message ID 1231941790.5858.187.camel@nc
State Not Applicable
Headers show

Commit Message

Natanael Copa Jan. 14, 2009, 2:03 p.m. UTC
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.

Comments

Avi Kivity Jan. 15, 2009, 4:37 p.m. UTC | #1
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.
>
> It applies to the just released 83 release as well.
>
>   

Please submit this to qemu-devel@nongnu.org, as this is a qemu issue, 
not kvm specific.

Patch
diff mbox

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