From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 2C01D7DFC for ; Thu, 30 Oct 2014 14:52:23 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XjqHn-00068e-UP; Thu, 30 Oct 2014 10:01:18 -0400 Date: Thu, 30 Oct 2014 10:01:10 -0400 From: Neil Horman To: "Gonzalez Monroy, Sergio" Message-ID: <20141030140110.GE24783@hmsreliant.think-freely.org> References: <1414666662-14966-1-git-send-email-sergio.gonzalez.monroy@intel.com> <91383E96CE459D47BCE92EFBF5CE73B004E9A0FB@IRSMSX108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91383E96CE459D47BCE92EFBF5CE73B004E9A0FB@IRSMSX108.ger.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] mk: --no-as-needed by default for linux exec-env X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 13:52:23 -0000 On Thu, Oct 30, 2014 at 11:05:24AM +0000, Gonzalez Monroy, Sergio wrote: > Some info about the issue for this patch: > https://wiki.ubuntu.com/ToolChain/CompilerFlags#Flags_passed_to_the_linker > https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries > > Basically, Ubuntu GCC is always passing --as-needed to the linker which causes some > Linking issues for us. Can you elaborate here? Neil > I'm not entirely sure that we should patch this issue or just add to the release notes. > Currently we can work around this by setting EXTRA_LDFLAGS='--no-as-needed' > > Thoughts? > > Thanks, > Sergio > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Sergio Gonzalez > > Monroy > > Sent: Thursday, October 30, 2014 10:58 AM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH] mk: --no-as-needed by default for linux exec- > > env > > > > Ubuntu/Debian toolchain passes --as-needed flag to the linker by default. > > Add --no-as-needed flag by default in linuxapp exec-env to ensure correct > > linking. > > > > Signed-off-by: Sergio Gonzalez Monroy > > > > --- > > mk/exec-env/linuxapp/rte.vars.mk | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/mk/exec-env/linuxapp/rte.vars.mk b/mk/exec- > > env/linuxapp/rte.vars.mk > > index d4808c2..79ddd5f 100644 > > --- a/mk/exec-env/linuxapp/rte.vars.mk > > +++ b/mk/exec-env/linuxapp/rte.vars.mk > > @@ -45,7 +45,7 @@ else > > EXECENV_CFLAGS = -pthread > > endif > > > > -EXECENV_LDFLAGS = > > +EXECENV_LDFLAGS = --no-as-needed > > EXECENV_LDLIBS = -lrt -lm > > EXECENV_ASFLAGS = > > > > -- > > 1.9.3 > >