Received: from eggs.gnu.org ([208.118.235.92]:48611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjVbG-0002TH-6E for qemu-devel@nongnu.org; Fri, 14 Dec 2012 08:46:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjVbE-0000V2-Ug for qemu-devel@nongnu.org; Fri, 14 Dec 2012 08:46:50 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:48534 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjVbE-0000Uu-Js for qemu-devel@nongnu.org; Fri, 14 Dec 2012 08:46:48 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1936665411.23874741.1355472843936.JavaMail.root@redhat.com> Date: Fri, 14 Dec 2012 14:46:46 +0100 In-Reply-To: <1936665411.23874741.1355472843936.JavaMail.root@redhat.com> (Paolo Bonzini's message of "Fri, 14 Dec 2012 03:14:03 -0500 (EST)") Message-ID: <87sj784ugp.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] build: Use separate makefile for "trace/" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini writes: >> > Yeah, make it >> >> > oslib-obj-y += trace/ >> >> > and get rid of trace-obj-y. >> >> Mmm, but according to Makefile.objs: >> >> oslib-obj-y is code depending on the OS (win32 vs posix) > True... I'd like to simplify this jungle sooner or later though. > We can keep trace-obj-y, but please do leave out qemu-timer-common.o Done, I'll send v2 later today. [...] >> > I'm sure this has already been previously discussed to the point of extenuation, >> > but what are the reasons for not using autotools? >> >> > Autoconf -> no point, but someone needs to do the work. >> >> > Automake -> the build system is just too different. >> >> > Libtool -> using it already. :) >> >> >> Ok, so it's not something against the suite per-se, but about porting work. >> >> The thing I like about automake is that it provides a clear set of vars to >> manage the per-dir builds, thanks to using a per-dir $(MAKE); but I'm >> not sure how the per-target build would be managed (except by having a >> separate configure+make for each of them). > Yes, that would be it. I'd certainly love to see something along those lines for the sake of makefile simplicity. > Even an autoconf conversion probably would have to use separate configure > scripts for the global project and for each target. If you're willing to pay for a complete recompilation for each target you can just have a single configure file. >> This could also be provided by having the QEMU build infrastructure use $(MAKE) >> to enter into each directory, and having it produce an ar file (or a >> set of them) with a "standard" name as a result (using libtool). > Doesn't need to use libtool. Static libraries are just fine. The problem > is that ar doesn't work well with constructors, which we use for module.c. > It is what QEMU used to use, but Andreas moved away a couple of years ago > and I think it is an improvement. Ah, I know that one in gcc :) -Wl,--whole-archive foo.a -Wl,--no-whole-archive Thanks, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth