From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNibD-0001S6-UM for qemu-devel@nongnu.org; Fri, 16 Jan 2009 01:54:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNibA-0001Pe-NM for qemu-devel@nongnu.org; Fri, 16 Jan 2009 01:54:33 -0500 Received: from [199.232.76.173] (port=53986 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNibA-0001PV-KK for qemu-devel@nongnu.org; Fri, 16 Jan 2009 01:54:32 -0500 Received: from mail-ew0-f21.google.com ([209.85.219.21]:53723) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNibA-0002Ja-6r for qemu-devel@nongnu.org; Fri, 16 Jan 2009 01:54:32 -0500 Received: by ewy14 with SMTP id 14so1832588ewy.10 for ; Thu, 15 Jan 2009 22:54:29 -0800 (PST) From: Natanael Copa Content-Type: multipart/mixed; boundary="=-9wAoRS3X6fM6Bdr4x00U" Date: Fri, 16 Jan 2009 07:54:25 +0100 Message-Id: <1232088865.5858.251.camel@nc> Mime-Version: 1.0 Subject: [Qemu-devel] [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-9wAoRS3X6fM6Bdr4x00U 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. Thanks! -nc PS. please CC me as i don't subscribe to the list. --=-9wAoRS3X6fM6Bdr4x00U 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 --=-9wAoRS3X6fM6Bdr4x00U--