Skip to contentSkip to conversation

mk: fix static linking with null pmd

PATCH In review Thomas Monjalon 1 participant 2 messages Apr 10, 2015 – Apr 13, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mk: fix static linking with null pmd

Null PMD was not found when using a statically linked application:
EAL: no driver found for eth_null1
EAL: failed to initialize eth_null1 device

Fixes c743e50c475f ("null: new poll mode driver")
---
 mk/rte.app.mk | 4 ++++
 1 file changed, 4 insertions(+)
mk/rte.app.mk +4 -0
index aa8af79..62a76ae 100644
@@ -251,6 +251,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_AF_PACKET),y)
 LDLIBS += -lrte_pmd_af_packet
 endif
 
+ifeq ($(CONFIG_RTE_LIBRTE_PMD_NULL),y)
+LDLIBS += -lrte_pmd_null
+endif
+
 endif # plugins
 
 endif # ! CONFIG_RTE_BUILD_COMBINE_LIBS
Signature · 1 line
2.2.2