From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3QyO-0004zt-9X for qemu-devel@nongnu.org; Mon, 20 Aug 2012 08:20:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3QyN-0005Ic-0U for qemu-devel@nongnu.org; Mon, 20 Aug 2012 08:20:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3QyM-0005IX-LJ for qemu-devel@nongnu.org; Mon, 20 Aug 2012 08:20:46 -0400 From: Juan Quintela In-Reply-To: <1345123356-6673-1-git-send-email-ncopa@alpinelinux.org> (Natanael Copa's message of "Thu, 16 Aug 2012 13:22:36 +0000") References: <1339685486-8247-1-git-send-email-ncopa@alpinelinux.org> <1345123356-6673-1-git-send-email-ncopa@alpinelinux.org> Date: Mon, 20 Aug 2012 14:19:41 +0200 Message-ID: <87pq6leowy.fsf@elfo.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Natanael Copa Cc: Natanael Copa , qemu-devel@nongnu.org Natanael Copa wrote: > Fixes build against uClibc. > > uClibc provides 2 versions of clock_gettime(), one with realtime > support and one without (this is so you can avoid linking in -lrt > unless actually needed). This means that the clock_gettime() don't > need -lrt. We still need it for timer_create() so we check for this > function in addition. > > We also need check if -lm is needed for isnan(). > > Both -lm and -lrt are needed for libs_qga. > > Signed-off-by: Natanael Copa Reviewed-by: Juan Quintela