Skip to contentSkip to conversation

qemu/configure: correctly detect -lrt ldflag on uclibc

PATCH In review Natanael Copa 2 participants 2 messages Jan 14, 2009 – Jan 15, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu/configure: correctly detect -lrt ldflag on uclibc

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.

qemu/configure +4 -1
@@ -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
#1 lore raw
Quoted 9 lines · Natanael Copa

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 [email protected], as this is a qemu issue, not kvm specific.

Signature · 1 line
error compiling committee.c: too many arguments to function