[dpdk-dev,v2,1/2] mk: fix missing vhost dependency to pthread to avoid libarary underlinking

Message ID 1465816017-25772-2-git-send-email-christian.ehrhardt@canonical.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Christian Ehrhardt June 13, 2016, 11:06 a.m. UTC
  Add the missing external dependency to pthread to avoid referring to
symbols the library is not linked against.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
---
 drivers/net/vhost/Makefile | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/drivers/net/vhost/Makefile b/drivers/net/vhost/Makefile
index f49a69b..545d998 100644
--- a/drivers/net/vhost/Makefile
+++ b/drivers/net/vhost/Makefile
@@ -36,6 +36,8 @@  include $(RTE_SDK)/mk/rte.vars.mk
 #
 LIB = librte_pmd_vhost.a
 
+LDLIBS += -lpthread
+
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)