* [PATCH] mk: fix app linking for combined libs @ 2014-10-23 15:36 Sergio Gonzalez Monroy [not found] ` <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Sergio Gonzalez Monroy @ 2014-10-23 15:36 UTC (permalink / raw) To: dev-VfR2kkLFssw Building combined shared libraries results in applications being linked against separeted/individual and combined libs altogether. Link only against combined lib when the config option is enabled. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- mk/rte.app.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 285b65c..45444af 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -217,6 +217,12 @@ endif endif # plugins +ifeq ($(RTE_BUILD_COMBINE_LIBS),y) +LDLIBS = --whole-archive +LDLIBS += --start-group +LDLIBS += -l$(RTE_LIBNAME) +endif + LDLIBS += $(EXECENV_LDLIBS) LDLIBS += --end-group @@ -240,10 +246,6 @@ build: _postbuild exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) -ifeq ($(RTE_BUILD_COMBINE_LIBS),y) -LDLIBS += -l$(RTE_LIBNAME) -endif - ifeq ($(LINK_USING_CC),1) LDLIBS := $(call linkerprefix,$(LDLIBS)) LDFLAGS := $(call linkerprefix,$(LDFLAGS)) -- 1.9.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
[parent not found: <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] mk: fix app linking for combined libs [not found] ` <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2014-10-28 16:37 ` De Lara Guarch, Pablo 2014-11-28 15:55 ` Thomas Monjalon 2014-12-08 14:53 ` Neil Horman 2 siblings, 0 replies; 9+ messages in thread From: De Lara Guarch, Pablo @ 2014-10-28 16:37 UTC (permalink / raw) To: Gonzalez Monroy, Sergio, dev-VfR2kkLFssw@public.gmane.org > -----Original Message----- > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Sergio Gonzalez > Monroy > Sent: Thursday, October 23, 2014 4:37 PM > To: dev-VfR2kkLFssw@public.gmane.org > Subject: [dpdk-dev] [PATCH] mk: fix app linking for combined libs > > Building combined shared libraries results in applications being linked > against separeted/individual and combined libs altogether. Minor typo in the commit message: "separeted". > > Link only against combined lib when the config option is enabled. > > Signed-off-by: Sergio Gonzalez Monroy > <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mk: fix app linking for combined libs [not found] ` <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:37 ` De Lara Guarch, Pablo @ 2014-11-28 15:55 ` Thomas Monjalon 2014-12-01 9:57 ` Gonzalez Monroy, Sergio 2014-12-08 14:53 ` Neil Horman 2 siblings, 1 reply; 9+ messages in thread From: Thomas Monjalon @ 2014-11-28 15:55 UTC (permalink / raw) To: Sergio Gonzalez Monroy; +Cc: dev-VfR2kkLFssw 2014-10-23 16:36, Sergio Gonzalez Monroy: > Building combined shared libraries results in applications being linked > against separeted/individual and combined libs altogether. > > Link only against combined lib when the config option is enabled. > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> [...] > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -217,6 +217,12 @@ endif > > endif # plugins > > +ifeq ($(RTE_BUILD_COMBINE_LIBS),y) > +LDLIBS = --whole-archive You are resetting LDLIBS here. It's not easy to read and probably not desired. I think it would be better to explicitly disable separated libs in this case. > +LDLIBS += --start-group > +LDLIBS += -l$(RTE_LIBNAME) > +endif Thanks -- Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mk: fix app linking for combined libs 2014-11-28 15:55 ` Thomas Monjalon @ 2014-12-01 9:57 ` Gonzalez Monroy, Sergio [not found] ` <91383E96CE459D47BCE92EFBF5CE73B004EF7321-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Gonzalez Monroy, Sergio @ 2014-12-01 9:57 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw@public.gmane.org > From: Thomas Monjalon [mailto:thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org] > Sent: Friday, November 28, 2014 3:56 PM > > 2014-10-23 16:36, Sergio Gonzalez Monroy: > > Building combined shared libraries results in applications being > > linked against separeted/individual and combined libs altogether. > > > > Link only against combined lib when the config option is enabled. > > > > Signed-off-by: Sergio Gonzalez Monroy > > <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > [...] > > --- a/mk/rte.app.mk > > +++ b/mk/rte.app.mk > > @@ -217,6 +217,12 @@ endif > > > > endif # plugins > > > > +ifeq ($(RTE_BUILD_COMBINE_LIBS),y) > > +LDLIBS = --whole-archive > > You are resetting LDLIBS here. > It's not easy to read and probably not desired. > I think it would be better to explicitly disable separated libs in this case. > Yes, I am resetting LDLIBS so we just link against the combined lib instead of all the previous separated libs. I am not sure I understand what you mean with 'disable separated libs in this case'. Thanks, Sergio > > +LDLIBS += --start-group > > +LDLIBS += -l$(RTE_LIBNAME) > > +endif > > Thanks > -- > Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <91383E96CE459D47BCE92EFBF5CE73B004EF7321-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: [PATCH] mk: fix app linking for combined libs [not found] ` <91383E96CE459D47BCE92EFBF5CE73B004EF7321-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2014-12-01 10:35 ` Thomas Monjalon 2014-12-01 11:15 ` Gonzalez Monroy, Sergio 0 siblings, 1 reply; 9+ messages in thread From: Thomas Monjalon @ 2014-12-01 10:35 UTC (permalink / raw) To: Gonzalez Monroy, Sergio; +Cc: dev-VfR2kkLFssw 2014-12-01 09:57, Gonzalez Monroy, Sergio: > > From: Thomas Monjalon [mailto:thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org] > > 2014-10-23 16:36, Sergio Gonzalez Monroy: > > > Building combined shared libraries results in applications being > > > linked against separeted/individual and combined libs altogether. > > > > > > Link only against combined lib when the config option is enabled. > > > > > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > [...] > > > --- a/mk/rte.app.mk > > > +++ b/mk/rte.app.mk > > > @@ -217,6 +217,12 @@ endif > > > > > > endif # plugins > > > > > > +ifeq ($(RTE_BUILD_COMBINE_LIBS),y) > > > +LDLIBS = --whole-archive > > > > You are resetting LDLIBS here. > > It's not easy to read and probably not desired. > > I think it would be better to explicitly disable separated libs in this case. > > > Yes, I am resetting LDLIBS so we just link against the combined lib instead of all the previous separated libs. > I am not sure I understand what you mean with 'disable separated libs in this case'. By "disable separated libs", I mean enclose the LDLIBS lines for separated libs with ifneq ($(RTE_BUILD_COMBINE_LIBS),y) Using ifeq is more explicit than inserting LDLIBS= in the middle of LDLIBS+= lines. Do you agree? -- Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] mk: fix app linking for combined libs 2014-12-01 10:35 ` Thomas Monjalon @ 2014-12-01 11:15 ` Gonzalez Monroy, Sergio 0 siblings, 0 replies; 9+ messages in thread From: Gonzalez Monroy, Sergio @ 2014-12-01 11:15 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw@public.gmane.org > From: Thomas Monjalon [mailto:thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org] > Sent: Monday, December 1, 2014 10:35 AM > > By "disable separated libs", I mean enclose the LDLIBS lines for separated libs > with ifneq ($(RTE_BUILD_COMBINE_LIBS),y) Using ifeq is more explicit than > inserting LDLIBS= in the middle of LDLIBS+= lines. > Do you agree? > That makes sense, I agree it would be easier to read that way. I'll work on a v2. Thanks, Sergio > -- > Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mk: fix app linking for combined libs [not found] ` <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:37 ` De Lara Guarch, Pablo 2014-11-28 15:55 ` Thomas Monjalon @ 2014-12-08 14:53 ` Neil Horman [not found] ` <20141208145358.GG3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2 siblings, 1 reply; 9+ messages in thread From: Neil Horman @ 2014-12-08 14:53 UTC (permalink / raw) To: Sergio Gonzalez Monroy; +Cc: dev-VfR2kkLFssw On Thu, Oct 23, 2014 at 04:36:44PM +0100, Sergio Gonzalez Monroy wrote: > Building combined shared libraries results in applications being linked > against separeted/individual and combined libs altogether. > > Link only against combined lib when the config option is enabled. > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > --- > mk/rte.app.mk | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/mk/rte.app.mk b/mk/rte.app.mk > index 285b65c..45444af 100644 > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -217,6 +217,12 @@ endif > > endif # plugins > > +ifeq ($(RTE_BUILD_COMBINE_LIBS),y) > +LDLIBS = --whole-archive > +LDLIBS += --start-group > +LDLIBS += -l$(RTE_LIBNAME) > +endif > + > LDLIBS += $(EXECENV_LDLIBS) > > LDLIBS += --end-group > @@ -240,10 +246,6 @@ build: _postbuild > > exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) > > -ifeq ($(RTE_BUILD_COMBINE_LIBS),y) > -LDLIBS += -l$(RTE_LIBNAME) > -endif > - > ifeq ($(LINK_USING_CC),1) > LDLIBS := $(call linkerprefix,$(LDLIBS)) > LDFLAGS := $(call linkerprefix,$(LDFLAGS)) Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20141208145358.GG3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: mk: fix app linking for combined libs [not found] ` <20141208145358.GG3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2014-12-16 16:02 ` Thomas Monjalon 2014-12-16 23:26 ` Hiroshi Shimamoto 0 siblings, 1 reply; 9+ messages in thread From: Thomas Monjalon @ 2014-12-16 16:02 UTC (permalink / raw) To: Neil Horman; +Cc: dev-VfR2kkLFssw 2014-12-08 09:53, Neil Horman: > On Thu, Oct 23, 2014 at 04:36:44PM +0100, Sergio Gonzalez Monroy wrote: > > Building combined shared libraries results in applications being linked > > against separeted/individual and combined libs altogether. > > > > Link only against combined lib when the config option is enabled. > > > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> [...] > Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> Neil, I didn't noticed your ack which happened after a discussion I had with Sergio. He agreed to make a v2. Actually Hiroshi did it: http://dpdk.org/ml/archives/dev/2014-December/009847.html I'm going to apply Hiroshi's one. -- Thomas ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mk: fix app linking for combined libs 2014-12-16 16:02 ` Thomas Monjalon @ 2014-12-16 23:26 ` Hiroshi Shimamoto 0 siblings, 0 replies; 9+ messages in thread From: Hiroshi Shimamoto @ 2014-12-16 23:26 UTC (permalink / raw) To: Thomas Monjalon, Neil Horman; +Cc: dev-VfR2kkLFssw@public.gmane.org > Subject: Re: [dpdk-dev] mk: fix app linking for combined libs > > 2014-12-08 09:53, Neil Horman: > > On Thu, Oct 23, 2014 at 04:36:44PM +0100, Sergio Gonzalez Monroy wrote: > > > Building combined shared libraries results in applications being linked > > > against separeted/individual and combined libs altogether. > > > > > > Link only against combined lib when the config option is enabled. > > > > > > Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> > > > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > [...] > > Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> > > Neil, I didn't noticed your ack which happened after a discussion I had with > Sergio. He agreed to make a v2. > Actually Hiroshi did it: > http://dpdk.org/ml/archives/dev/2014-December/009847.html > I'm going to apply Hiroshi's one. Ah, I haven't noticed there was the patch to address this issue. thanks, Hiroshi ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-12-16 23:26 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-23 15:36 [PATCH] mk: fix app linking for combined libs Sergio Gonzalez Monroy [not found] ` <1414078604-1090-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-10-28 16:37 ` De Lara Guarch, Pablo 2014-11-28 15:55 ` Thomas Monjalon 2014-12-01 9:57 ` Gonzalez Monroy, Sergio [not found] ` <91383E96CE459D47BCE92EFBF5CE73B004EF7321-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2014-12-01 10:35 ` Thomas Monjalon 2014-12-01 11:15 ` Gonzalez Monroy, Sergio 2014-12-08 14:53 ` Neil Horman [not found] ` <20141208145358.GG3237-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 2014-12-16 16:02 ` Thomas Monjalon 2014-12-16 23:26 ` Hiroshi Shimamoto
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).