From mboxrd@z Thu Jan 1 00:00:00 1970 From: Natanael Copa Subject: [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc Date: Wed, 14 Jan 2009 15:03:10 +0100 Message-ID: <1231941790.5858.187.camel@nc> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-REw8JKajXH6x3zqBvWPh" To: kvm@vger.kernel.org Return-path: Received: from mail-ew0-f17.google.com ([209.85.219.17]:62905 "EHLO mail-ew0-f17.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbZANODP (ORCPT ); Wed, 14 Jan 2009 09:03:15 -0500 Received: by ewy10 with SMTP id 10so664119ewy.13 for ; Wed, 14 Jan 2009 06:03:14 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: --=-REw8JKajXH6x3zqBvWPh Content-Type: text/plain Content-Transfer-Encoding: 7bit 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. --=-REw8JKajXH6x3zqBvWPh Content-Disposition: attachment; filename="kvm-82-uclibc.patch" Content-Type: text/x-patch; name="kvm-82-uclibc.patch"; charset="us-ascii" Content-Transfer-Encoding: 7bit --- 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 < #include -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 --=-REw8JKajXH6x3zqBvWPh--