From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Jun 2016 02:06:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,466,1459839600"; d="scan'208";a="1000735231" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.87]) ([10.237.220.87]) by fmsmga002.fm.intel.com with ESMTP; 13 Jun 2016 02:05:59 -0700 To: Thomas Monjalon 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> Cc: dev@dpdk.org, Panu Matilainen , Christian Ehrhardt From: Ferruh Yigit Message-ID: <575E7776.2010206@intel.com> Date: Mon, 13 Jun 2016 10:05:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <2540990.UDeWx5vTGn@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 6/6] mk: prevent overlinking in applications 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: Mon, 13 Jun 2016 09:06:21 -0000 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