From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A5A09B4AD for ; Fri, 13 Feb 2015 11:39:45 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 13 Feb 2015 02:35:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,570,1418112000"; d="scan'208";a="685245155" Received: from unknown (HELO Sent) ([10.217.248.113]) by orsmga002.jf.intel.com with SMTP; 13 Feb 2015 02:39:41 -0800 Received: by Sent (sSMTP sendmail emulation); Fri, 13 Feb 2015 11:39:40 +0200 From: Tomasz Kulasek To: dev@dpdk.org Date: Fri, 13 Feb 2015 11:38:15 +0100 Message-Id: <1423823896-4620-4-git-send-email-tomaszx.kulasek@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423823896-4620-1-git-send-email-tomaszx.kulasek@intel.com> References: <1422521516-780-1-git-send-email-tomaszx.kulasek@intel.com> <1423823896-4620-1-git-send-email-tomaszx.kulasek@intel.com> Subject: [dpdk-dev] [PATCH v4 3/4] mk: Link test app against librte_pmd_ring when needed 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: Fri, 13 Feb 2015 10:39:46 -0000 This patch links test application against librte_pmd_ring.so for shared libraries. It's required as long as librte_pmd_ring provides some aditional routines used for testing purposes and must be "hard-linked". Signed-off-by: Tomasz Kulasek --- app/test/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/test/Makefile b/app/test/Makefile index ee0e95a..30dcdab 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -128,8 +128,12 @@ SRCS-y += test_devargs.c SRCS-y += virtual_pmd.c SRCS-y += packet_burst_generator.c SRCS-$(CONFIG_RTE_LIBRTE_ACL) += test_acl.c + +ifeq ($(CONFIG_RTE_LIBRTE_PMD_RING),y) SRCS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += test_link_bonding.c SRCS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += test_link_bonding_mode4.c +endif + SRCS-$(CONFIG_RTE_LIBRTE_PMD_RING) += test_pmd_ring.c SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c @@ -147,6 +151,17 @@ CFLAGS += -D_GNU_SOURCE # this application needs libraries first DEPDIRS-y += lib +# Link against shared libraries when needed +ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y) +ifneq ($(CONFIG_RTE_LIBRTE_PMD_RING),y) +$(error Link bonding tests require CONFIG_RTE_LIBRTE_PMD_RING=y) +else +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +LDLIBS += -lrte_pmd_ring +endif +endif +endif + include $(RTE_SDK)/mk/rte.app.mk endif -- 1.7.9.5