Received: from eggs.gnu.org ([2001:4830:134:3::10]:39757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHqRv-0000Nu-AM for qemu-devel@nongnu.org; Fri, 06 Sep 2013 03:27:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHqRp-0007cw-WC for qemu-devel@nongnu.org; Fri, 06 Sep 2013 03:27:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHqRp-0007co-Oi for qemu-devel@nongnu.org; Fri, 06 Sep 2013 03:27:17 -0400 Date: Fri, 6 Sep 2013 15:27:14 +0800 From: Fam Zheng Message-ID: <20130906072714.GB4814@T430s.nay.redhat.com> References: <1378376448-29036-1-git-send-email-famz@redhat.com> <1378376448-29036-5-git-send-email-famz@redhat.com> <5228DA64.2020009@twiddle.net> <20130906055356.GA6847@T430s.nay.redhat.com> <5229822E.3020801@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5229822E.3020801@twiddle.net> Subject: Re: [Qemu-devel] [RFC PATCH 4/6] Makefile: introduce common-obj-m and block-obj-m for DSO Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: pbonzini@redhat.com, mjt@tls.msk.ru, qemu-devel@nongnu.org, stefanha@redhat.com On Fri, 09/06 00:20, Richard Henderson wrote: > On 09/05/2013 10:53 PM, Fam Zheng wrote: > > OK. Thanks for pointing out. The problem with ar file is that --whole-archive > > needs to be done specificly to modules .a, other libs shouldn't be linked with > > this flag. > > See also: > > --whole-archive foo.a --no-whole-archive Yes, this is a way to do it, but will complicates the link command, and may be more error prone. I expanded foo.mo to its contained .o for static linking in the next revision that's coming up. Thanks, Fam