From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 8F941E82 for ; Wed, 1 Oct 2014 12:43:58 +0200 (CEST) Received: from [2001:470:8:a08:9833:6894:f2b2:43a] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XZHUF-0007KE-II; Wed, 01 Oct 2014 06:50:41 -0400 Date: Wed, 1 Oct 2014 06:50:22 -0400 From: Neil Horman To: mukawa@igel.co.jp Message-ID: <20141001105022.GB21151@hmsreliant.think-freely.org> References: <1412137623-18817-1-git-send-email-mukawa@igel.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1412137623-18817-1-git-send-email-mukawa@igel.co.jp> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] Fix linking errors when CONFIG_RTE_BUILD_SHARED_LIB is enabled 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: Wed, 01 Oct 2014 10:43:58 -0000 On Wed, Oct 01, 2014 at 01:27:03PM +0900, mukawa@igel.co.jp wrote: > From: Tetsuya Mukawa > > When CONFIG_RTE_BUILD_SHARED_LIB is enabled, linking errors occured > while compiling. It seems those errors are caused by wrong link order > of some libraries. The patch fixes it like following. > > 1. librte_eal > 2. librte_malloc > 3. librte_mempool > 4. librte_ring > 5. librte_pmd_bond > 6. librte_kvargs > I'm not sure why thats necesecary. We add a --start-group/--end-group pair halfway through this makefile. If we just encompassed the entire set of libraries in that group, order would be irrelevant. Neil > Signed-off-by: Tetsuya Mukawa > --- > mk/rte.app.mk | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/mk/rte.app.mk b/mk/rte.app.mk > index 34dff2a..172ba4d 100644 > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -121,10 +121,6 @@ endif > > LDLIBS += --start-group > > -ifeq ($(CONFIG_RTE_LIBRTE_KVARGS),y) > -LDLIBS += -lrte_kvargs > -endif > - > ifeq ($(CONFIG_RTE_LIBRTE_MBUF),y) > LDLIBS += -lrte_mbuf > endif > @@ -137,6 +133,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_ETHER),y) > LDLIBS += -lethdev > endif > > +ifeq ($(CONFIG_RTE_LIBRTE_EAL),y) > +LDLIBS += -lrte_eal > +endif > + > ifeq ($(CONFIG_RTE_LIBRTE_MALLOC),y) > LDLIBS += -lrte_malloc > endif > @@ -158,10 +158,6 @@ ifeq ($(CONFIG_RTE_LIBGLOSS),y) > LDLIBS += -lgloss > endif > > -ifeq ($(CONFIG_RTE_LIBRTE_EAL),y) > -LDLIBS += -lrte_eal > -endif > - > ifeq ($(CONFIG_RTE_LIBRTE_CMDLINE),y) > LDLIBS += -lrte_cmdline > endif > @@ -174,6 +170,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y) > LDLIBS += -lrte_pmd_bond > endif > > +ifeq ($(CONFIG_RTE_LIBRTE_KVARGS),y) > +LDLIBS += -lrte_kvargs > +endif > + > ifeq ($(CONFIG_RTE_LIBRTE_PMD_XENVIRT),y) > LDLIBS += -lrte_pmd_xenvirt > LDLIBS += -lxenstore > -- > 1.9.1 > >