From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by dpdk.org (Postfix) with ESMTP id E8E4071 for ; Wed, 1 Oct 2014 06:20:36 +0200 (CEST) Received: by mail-pa0-f54.google.com with SMTP id ey11so34980pad.27 for ; Tue, 30 Sep 2014 21:27:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ux9DHEaKpm+Xaz78xRonARMNIhuQuNPDH6lTmr3XcjQ=; b=QkatnqDQf/tJxDqmgDxTeQCZBqwm6wHPVds1b60Rv+zQ+QXlxDlx+AB6Eq9efqNUkw gccQa2r4h4oe31U8ponJaapWyQpsP+/NGTNlI1pUcFwz57nOxjDCBwbf/tODJ2WF9Am5 xQuLS38m2xVt/q0jml0Pj666pI1ZqeALq5PMOf2Jg8jFWN5iUoYPSP9uHE4fdcKFF9zT qaKLdfzyBWtSEkC2odDa8Kjy1X0exqT4OpSx9tpbUs5Bs5dFANtvISxoeyfLMTDwuyut +YrCZhiZoe5TPfVD7PjJiDmZe5UJCxhIYeYZCThCzrBA/SVSDCtR0SulABtZ2ZtdhNca aMGw== X-Gm-Message-State: ALoCoQkm6hedN7zeX+TAdMZ4vEkmzQotwe0oF8S04B9pG0lri1yz+UPCN/3WMckJuPdDwaYhWgN4 X-Received: by 10.68.65.74 with SMTP id v10mr52898889pbs.72.1412137639487; Tue, 30 Sep 2014 21:27:19 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id mw1sm16610277pdb.13.2014.09.30.21.27.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 21:27:18 -0700 (PDT) From: mukawa@igel.co.jp To: dev@dpdk.org Date: Wed, 1 Oct 2014 13:27:03 +0900 Message-Id: <1412137623-18817-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Subject: [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 04:20:37 -0000 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 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