From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gonzalez Monroy, Sergio" Subject: Re: [PATCH 3/3] mk: update app linking flags against shared libs Date: Wed, 15 Apr 2015 15:17:50 +0100 Message-ID: <552E730E.2060901@intel.com> References: <1429090230-25137-1-git-send-email-sergio.gonzalez.monroy@intel.com> <1429090230-25137-4-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1429090230-25137-4-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On 15/04/2015 10:30, Sergio Gonzalez Monroy wrote: > Use flag --as-needed when linking against shared libs, exluding > eal, malloc, mempool and ring as explained in: > 7cee5f6b4a9b ("lib: set LDLIBS for each library") Self-NACK. It is not correct to put the commit id here (it does not exist after all :) ). I'll send v2 with new commit message, but I'd wait until someone review the rest of the patch first. Sergio > Signed-off-by: Sergio Gonzalez Monroy > --- > mk/rte.app.mk | 36 ++++++++++++++++++++---------------- > 1 file changed, 20 insertions(+), 16 deletions(-) > > diff --git a/mk/rte.app.mk b/mk/rte.app.mk > index 62a76ae..c557957 100644 > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -67,6 +67,26 @@ endif > > ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n) > > +ifeq ($(CONFIG_RTE_LIBRTE_EAL),y) > +LDLIBS += -lrte_eal > +endif > + > +ifeq ($(CONFIG_RTE_LIBRTE_MALLOC),y) > +LDLIBS += -lrte_malloc > +endif > + > +ifeq ($(CONFIG_RTE_LIBRTE_MEMPOOL),y) > +LDLIBS += -lrte_mempool > +endif > + > +ifeq ($(CONFIG_RTE_LIBRTE_RING),y) > +LDLIBS += -lrte_ring > +endif > + > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > +LDLIBS += --as-needed > +endif > + > ifeq ($(CONFIG_RTE_LIBRTE_DISTRIBUTOR),y) > LDLIBS += -lrte_distributor > endif > @@ -171,22 +191,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_ETHER),y) > LDLIBS += -lethdev > endif > > -ifeq ($(CONFIG_RTE_LIBRTE_MALLOC),y) > -LDLIBS += -lrte_malloc > -endif > - > -ifeq ($(CONFIG_RTE_LIBRTE_MEMPOOL),y) > -LDLIBS += -lrte_mempool > -endif > - > -ifeq ($(CONFIG_RTE_LIBRTE_RING),y) > -LDLIBS += -lrte_ring > -endif > - > -ifeq ($(CONFIG_RTE_LIBRTE_EAL),y) > -LDLIBS += -lrte_eal > -endif > - > ifeq ($(CONFIG_RTE_LIBRTE_CMDLINE),y) > LDLIBS += -lrte_cmdline > endif