From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: [PATCH v2] vhost: Fix linkage of vhost PMD Date: Tue, 26 Apr 2016 14:39:29 +0900 Message-ID: <1461649169-13967-1-git-send-email-mukawa@igel.co.jp> References: <571DDDD8.6000000@igel.co.jp> Cc: pmatilai@redhat.com, yuanhan.liu@linux.intel.com, huawei.xie@intel.com, Tetsuya Mukawa To: dev@dpdk.org Return-path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 86CA63208 for ; Tue, 26 Apr 2016 07:39:39 +0200 (CEST) Received: by mail-pa0-f53.google.com with SMTP id iv1so2353449pac.2 for ; Mon, 25 Apr 2016 22:39:39 -0700 (PDT) In-Reply-To: <571DDDD8.6000000@igel.co.jp> 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" Currently, vhost PMD doesn't have linkage for librte_vhost, even though it depends on librte_vhost APIs. This causes a linkage error if below conditions are fulfilled. - DPDK libraries are compiled as shared libraries. - DPDK application doesn't link librte_vhost. - Above application tries to link vhost PMD using '-d' DPDK option. The patch adds linkage for librte_vhost to vhost PMD not to cause an above error. Signed-off-by: Tetsuya Mukawa Acked-by: Panu Matilainen --- drivers/net/vhost/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vhost/Makefile b/drivers/net/vhost/Makefile index f49a69b..30b91a0 100644 --- a/drivers/net/vhost/Makefile +++ b/drivers/net/vhost/Makefile @@ -38,6 +38,7 @@ LIB = librte_pmd_vhost.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +LDLIBS += -lrte_vhost EXPORT_MAP := rte_pmd_vhost_version.map -- 2.5.0