From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3iGL-0002IL-S7 for qemu-devel@nongnu.org; Tue, 21 Aug 2012 02:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3iGK-0005eB-Ka for qemu-devel@nongnu.org; Tue, 21 Aug 2012 02:48:29 -0400 Received: from [74.117.189.114] (port=44492 helo=mail.alpinelinux.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3iGK-0005dy-Fu for qemu-devel@nongnu.org; Tue, 21 Aug 2012 02:48:28 -0400 Date: Tue, 21 Aug 2012 08:10:05 +0200 From: Natanael Copa Message-ID: <20120821081005.3dd7f17b@ncopa-desktop.nor.wtbts.net> In-Reply-To: References: <1339685486-8247-1-git-send-email-ncopa@alpinelinux.org> <1345123356-6673-1-git-send-email-ncopa@alpinelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Peter Maydell , qemu-devel@nongnu.org, Natanael Copa On Mon, 20 Aug 2012 19:53:22 +0000 Blue Swirl wrote: > >> - Do not remove the explicit add of -lm unless Haiku. This was due > >> to > >> http://www.mail-archive.com/qemu-devel@nongnu.org/msg102965.html I > >> am not sure if this is valid, though. > > > > Certainly building a linux-user target works for me even without > > that explicit 'LIBS+=-lm' in Makefile.target. Blue, can you remember > > what you had in mind when you wrote that email? > > Build failed since math library functions (sin() etc.) were not found. The v2 and v3 patches I sent tests for sin() in addition to isnan (which normally is a macro). It might explain why it works now. Adding a second -lm does not hurt, but omitting it when needed breaks build on uclibc for sure, so it would be nice if the v3 patch could be applied. Thanks! -nc