From: Tetsuya Mukawa Date: Tue, 26 Apr 2016 05:39:29 +0000 (+0900) Subject: vhost: fix linkage of driver with library X-Git-Tag: spdx-start~6940 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=8180554d82b311ec04c07e294e93d05078244272 vhost: fix linkage of driver with library 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. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Signed-off-by: Tetsuya Mukawa Acked-by: Panu Matilainen Acked-by: Yuanhan Liu --- diff --git a/drivers/net/vhost/Makefile b/drivers/net/vhost/Makefile index f49a69b3bd..30b91a066e 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