From patchwork Wed Jan 14 14:03:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Natanael Copa X-Patchwork-Id: 2319 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0EDxCH6016548 for ; Wed, 14 Jan 2009 05:59:12 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbZANODQ (ORCPT ); Wed, 14 Jan 2009 09:03:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752366AbZANODQ (ORCPT ); Wed, 14 Jan 2009 09:03:16 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=rgfndZmIkdlhOjGEkEG5zT8Pn3kwA/edoVOau2FtDFU=; b=TDTzx6XTF5wnw265RwCNDKWkIsn9XJt22YMvhObA+WWlxZcxv1zwZp5ck6PzYntFUz WJjAmNo9nyk/CCn7uEWHsqY9gM1HH43hFPn5T/lxVz/OAiKImV88BKdGQ6eXFytMJd5d 7onQhXtuePxK8i/uU3/q5P0X8wfFZiATjs2Ng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=myqCQVczNj0MgMCVEB4MdR2FnUwNS4awY1zyoromnmxcWAhwLH35jLsmEiX1nqNFI8 wx22uOI7YESH7OYQo4rtI2zQ1f8unwib/if5pItcyClP9LGHPXJQ68kQwYhsem8kjaaF RZvYpKFoOHf6vfHOSsMwJMFy0U9LYAvFElpS4= Received: by 10.210.10.1 with SMTP id 1mr165630ebj.53.1231941793871; Wed, 14 Jan 2009 06:03:13 -0800 (PST) Received: from ?10.65.65.1? (149-182-13.oke2-bras2.adsl.tele2.no [90.149.182.13]) by mx.google.com with ESMTPS id 10sm2944476eyz.39.2009.01.14.06.03.12 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 06:03:13 -0800 (PST) Subject: [PATCH] qemu/configure: correctly detect -lrt ldflag on uclibc From: Natanael Copa To: kvm@vger.kernel.org Date: Wed, 14 Jan 2009 15:03:10 +0100 Message-Id: <1231941790.5858.187.camel@nc> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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. --- 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