From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLzN5-0002ku-AM for qemu-devel@nongnu.org; Mon, 16 May 2011 11:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLzN4-0004yw-0o for qemu-devel@nongnu.org; Mon, 16 May 2011 11:06:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLzN3-0004yr-Mo for qemu-devel@nongnu.org; Mon, 16 May 2011 11:06:09 -0400 Date: Mon, 16 May 2011 21:06:02 +0300 From: Alon Levy Message-ID: <20110516180602.GD3868@playa.redhat.com> 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> <4DD13833.2050506@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD13833.2050506@redhat.com> Subject: Re: [Qemu-devel] [PATCH] libcacard: add libcacard.la target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Mon, May 16, 2011 at 04:44:03PM +0200, Paolo Bonzini wrote: > 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'll check. > >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. Sounds like a very good idea for short term. Otoh if I'm already building libcacard with qemu dependencies, it would be nice if I could benefit from the tracing framework. I'll investigate building trace-dtrace.lo and if this doesn't work I'll try nop backend. > > Paolo >