From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52216 invoked by alias); 2 Jul 2015 14:43:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 52203 invoked by uid 89); 2 Jul 2015 14:43:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Jul 2015 14:43:24 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-14-9NWLO0xAQMOVc8TWQSQeMg-1 Received: from [10.2.206.47] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Jul 2015 15:43:18 +0100 Message-ID: <55954E06.8000600@arm.com> Date: Thu, 02 Jul 2015 14:43:00 -0000 From: Andre Vieira User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Nicholas Clifton , "vapier@gentoo.org" CC: "gdb-patches@sourceware.org" Subject: Re: RFA: AArch64 sim References: <87vbe8hvfo.fsf@redhat.com> <559501B1.6090801@arm.com> <55954270.5090803@redhat.com> In-Reply-To: <55954270.5090803@redhat.com> X-MC-Unique: 9NWLO0xAQMOVc8TWQSQeMg-1 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-07/txt/msg00079.txt.bz2 That works for me! Thank you, Andre Vieira On 02/07/15 14:53, Nicholas Clifton wrote: > Hi Andre, > >> I realize EXTRA_SIM_CFLAGS with "-lm" is in there to deal with the use >> of math lib. Though I think EXTRA_SIM_CFLAGS is being expanded too early >> in the compile command, i.e. before libsim.a is passed on. Shouldn't it >> be put after libsim.a? As it could potentially cause a linker failure. > > You are right, although strangely it still works for me... > > Anyway, please could you test out the patch below. If it works for you > then I will check it in. > > Cheers > Nick > > diff --git a/sim/arm/Makefile.in b/sim/arm/Makefile.in > index 7605588..1eeec25 100644 > --- a/sim/arm/Makefile.in > +++ b/sim/arm/Makefile.in > @@ -17,7 +17,8 @@ > > ## COMMON_PRE_CONFIG_FRAG > > -SIM_EXTRA_CFLAGS =3D -DMODET -lm > +SIM_EXTRA_CFLAGS =3D -DMODET > +SIM_EXTRA_LIBS =3D -lm > > SIM_OBJS =3D \ > wrapper.o \ >