From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diQWO-0005f8-6A for qemu-devel@nongnu.org; Thu, 17 Aug 2017 15:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diQWK-0005Wh-WE for qemu-devel@nongnu.org; Thu, 17 Aug 2017 15:32:00 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:33864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diQWK-0005VK-Rc for qemu-devel@nongnu.org; Thu, 17 Aug 2017 15:31:56 -0400 Received: by mail-qk0-x233.google.com with SMTP id u139so42283984qka.1 for ; Thu, 17 Aug 2017 12:31:56 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <2897c32f34b415aadcf43a5ae296cf5f6e15e757.1501280035.git.alistair.francis@xilinx.com> <87valqw9x0.fsf@dusky.pond.sub.org> <87lgmluw2g.fsf@dusky.pond.sub.org> <87fucq86wh.fsf@dusky.pond.sub.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Thu, 17 Aug 2017 16:31:48 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 5/5] Convert single line fprintf() to warn_report() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis , Markus Armbruster Cc: Paolo Bonzini , "qemu-devel@nongnu.org Developers" On 08/17/2017 02:55 PM, Alistair Francis wrote: >>> On 15/08/2017 09:30, Markus Armbruster wrote: >>>> The stupid fix is to repeat libraries until the link succeeds: >>>> >>>> test-util-obj-y = libqemuutil.a libqemustub.a libqemuutil.a >>>> [...] >>>> >>>> Sticking '-Wp,-(' and '-Wp,-)' into the command line I get from make V=1 >>>> doesn't work for me, though. >>>> >>>> The smart solution is not to have .a reference each other. >>> >>> Nah, I think we should teach those new kids on the block about -lX11 >>> instead. :) > > This sounds scary... > >>> >>>> Paolo, what do you think? >>> >>> Another possibility is to just merge the two static libraries into one. >> >> Sounds good to me! > > I feel like I have opened a can of worms. you are good at it! IIRC it all started with a 1-line change in tcp_chr_wait_connected() more than 2 months ago :) > > I can try and combine libqemustub.a into libqemuutil.a is that the > solution? I just want to make sure before I start this. IMHO your series is OK like this, add a "TODO remove once libqemuutil.a circular dep is resolved" comment in the Makefile is enough, and let this issue for another time. Regards, Phil.