Received: from eggs.gnu.org ([140.186.70.92]:34785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzDFU-00046P-Pt for qemu-devel@nongnu.org; Thu, 01 Sep 2011 15:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzDFT-0001KG-Uq for qemu-devel@nongnu.org; Thu, 01 Sep 2011 15:48:28 -0400 Received: from gw.ac.upc.edu ([147.83.30.3]:57684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzDFT-0001K4-Nz for qemu-devel@nongnu.org; Thu, 01 Sep 2011 15:48:27 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20110824195317.14304.63305.stgit@ginnungagap.bsc.es> <1314260332-10534-1-git-send-email-stefanha@linux.vnet.ibm.com> <4E5FD4F9.3030107@codemonkey.ws> Date: Thu, 01 Sep 2011 21:47:59 +0200 In-Reply-To: <4E5FD4F9.3030107@codemonkey.ws> (Anthony Liguori's message of "Thu, 01 Sep 2011 13:54:49 -0500") Message-ID: <871uw0yrgw.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] build: sort objects to remove duplicates for link List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Hajnoczi , qemu-devel@nongnu.org Anthony Liguori writes: > On 08/25/2011 03:18 AM, Stefan Hajnoczi wrote: >> Avoid duplicate object files during the link. There are legitimate >> cases where a link command-line would include duplicate object files >> because two independent subsystems both depend on common infrastructure. >> >> Use GNU make's $(sort) function to remove duplicate object files from >> the link command-line. >> >> Signed-off-by: Stefan Hajnoczi > Applied. Thanks. > Regards, AFAIK, this patch is unnecessary once commit e03b41d47708744669aaa51e781021c3dc380198 in Stefan's repo is merged into upstream (which, according to the list, you just pulled). The reason is that $(sort) is unnecessary when passing $^ to the LINK function ($^ already eliminates repeats, while keeping the order intact). The patch fixes the QEMU_PROG rule, which was the only one not using $^. 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