Skip to contentSkip to conversation

mk: link librte_timer with --whole-archive

PATCH Superseded Michal Krawczyk 1 participant 1 message Jun 4, 2018

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 9/26 mk: link librte_timer with --whole-archive

ENA PMD is only PMD which is using librte_timer. In linking routine rte_timer is linked before PMDs, so if timers are not being used by the applications, they are just cut out.

---
 mk/rte.app.mk | 1 +
 1 file changed, 1 insertion(+)
mk/rte.app.mk +1 -0
index 1e32c83e7..c70bc254e 100644
@@ -60,6 +60,7 @@ endif
 
 _LDLIBS-y += --whole-archive
 
+_LDLIBS-$(CONFIG_RTE_LIBRTE_TIMER)          += -lrte_timer
 _LDLIBS-$(CONFIG_RTE_LIBRTE_CFGFILE)        += -lrte_cfgfile
 _LDLIBS-$(CONFIG_RTE_LIBRTE_HASH)           += -lrte_hash
 _LDLIBS-$(CONFIG_RTE_LIBRTE_MEMBER)         += -lrte_member
Signature · 1 line
2.14.1