From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 6/6] mk: prevent overlinking in applications Date: Mon, 13 Jun 2016 10:05:58 +0100 Message-ID: <575E7776.2010206@intel.com> 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> <2540990.UDeWx5vTGn@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Panu Matilainen , Christian Ehrhardt To: Thomas Monjalon Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 156EA2BBA for ; Mon, 13 Jun 2016 11:06:20 +0200 (CEST) In-Reply-To: <2540990.UDeWx5vTGn@xps13> 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" On 6/11/2016 7:34 AM, Thomas Monjalon wrote: > 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). > I missed that dependency removed, this is good, I will send a new version of the patch. Thanks, ferruh