[dpdk-dev] [PATCH 09/19] testpmd: only link pcap pmd when statically linking

Neil Horman nhorman at tuxdriver.com
Thu Apr 10 22:49:59 CEST 2014


when doing a static link, we need to add -lpacp to testpmd because it will need
to resolve those symbols when it links in librte_pmd_pcap.a

Signed-off-by: Neil Horman <nhorman at tuxdriver.com>
---
 mk/rte.app.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index 0499050..2f2ff16 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -164,7 +164,7 @@ endif
 
 ifeq ($(RTE_BUILD_SHARED_LIB),n)
 ifeq ($(CONFIG_RTE_LIBRTE_PMD_PCAP),y)
-LDLIBS += -lrte_pmd_pcap
+LDLIBS += -lrte_pmd_pcap -lpcap
 endif
 endif
 
-- 
1.8.3.1



More information about the dev mailing list