From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 6/6] mk: prevent overlinking in applications Date: Sat, 11 Jun 2016 08:34:38 +0200 Message-ID: <2540990.UDeWx5vTGn@xps13> References: <1465564749-1405-1-git-send-email-thomas.monjalon@6wind.com> <1465583550-21020-1-git-send-email-ferruh.yigit@intel.com> <1465583550-21020-7-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Panu Matilainen , Christian Ehrhardt To: Ferruh Yigit Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 90EF52BFE for ; Sat, 11 Jun 2016 08:34:40 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id v199so16147104wmv.0 for ; Fri, 10 Jun 2016 23:34:40 -0700 (PDT) In-Reply-To: <1465583550-21020-7-git-send-email-ferruh.yigit@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Ferruh, 2016-06-10 19:32, Ferruh Yigit: > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -50,6 +50,14 @@ ifeq ($(NO_LDSCRIPT),) > LDSCRIPT = $(RTE_LDSCRIPT) > endif > > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > +# Workaround to eal <-> mempool cyclic dependency > +_LDLIBS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += -lrte_mempool > +endif > + > +# Link only the libraries used in the application > +_LDLIBS-y += --as-needed I think we do not need this workaround. The dependency of EAL logs on mempool is now removed. We only have the dependency of EAL ivshmem on librte_ivshmem header (which needs mempool and rings headers).