From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utb2e-0007ky-NZ for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Utb2d-0005DA-Ki for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:09:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utb2d-0005Cz-E2 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:09:03 -0400 Message-ID: <51D1553A.8040204@redhat.com> Date: Mon, 01 Jul 2013 12:08:58 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1371576844-28743-1-git-send-email-mjt@msgid.tls.msk.ru> <51C1E335.9010304@redhat.com> <51D04D6E.5040506@msgid.tls.msk.ru> In-Reply-To: <51D04D6E.5040506@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel@nongnu.org Il 30/06/2013 17:23, Michael Tokarev ha scritto: >> Perhaps we can instead use something like >> > >> > common.o: $(patsubst %,../%, $(common-obj-y)) >> > $(LD) -r -o $@ $^ >> > >> > and then link common.o into the QEMU target. Libtool can also be used >> > to abstract "ld -r". Making libtool mandatory wouldn't be a problem IMO >> > (we'd need it anyway for modules) as long as you do not need libtool to >> > start QEMU or gdb from the build directory. > I think this will mean that whole common.o will have to be linked > into each executable which uses it, even if some executables are > only using just one function from whole lot of .o files. This would be a different common.o for each directory. Paolo