From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLz1n-0006XU-41 for qemu-devel@nongnu.org; Mon, 16 May 2011 10:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLz1l-0000qM-Qd for qemu-devel@nongnu.org; Mon, 16 May 2011 10:44:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLz1l-0000qA-Gx for qemu-devel@nongnu.org; Mon, 16 May 2011 10:44:09 -0400 Message-ID: <4DD13833.2050506@redhat.com> Date: Mon, 16 May 2011 16:44:03 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4DD115FD.1040103@redhat.com> <1305552333-19351-1-git-send-email-alevy@redhat.com> <4DD12691.7080905@codemonkey.ws> <4DD12DD9.2040400@redhat.com> <20110516173750.GA3868@playa.redhat.com> In-Reply-To: <20110516173750.GA3868@playa.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] libcacard: add libcacard.la target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org On 05/16/2011 07:37 PM, Alon Levy wrote: > I've settled on libtool > as the linker solution since it seems to be the de facto standard, please > correct me on this point if I'm wrong. We are not using autoconf, so > I've called it directly in it's various modes, compile, link and install. I agree. I don't dislike this particularly :) if at all. > Legitemacy of the warning: basically libtool is concerned about linking in position > dependant code. But the trace-dtrace.o contains no .rodata section and is not actually > a problem for the linker, I've verfied the resulting library works fine with spicec (the > spice client using it). I'm not sure, however, that glibc would still keep the sharing of .text. > I'd appreciate any suggestion of a replacement for libtool if it is not appropriate. > Note that this building of a shared library is not something new - we've talked about > this before in relation to libcacard inclusion inside qemu git repository. Do you really need tracing besides as a dependency of qemu_malloc? Perhaps you can recompile qemu-malloc.o specially for libcacard, and force usage of the nop backend. Paolo