diff --git a/lib/env_dpdk/env.mk b/lib/env_dpdk/env.mk index ad9cd2434..b631377c4 100644 --- a/lib/env_dpdk/env.mk +++ b/lib/env_dpdk/env.mk @@ -114,6 +114,9 @@ endif ifeq ($(LINK_HASH),y) DPDK_LIB_LIST += rte_hash +ifneq (, $(wildcard $(DPDK_ABS_DIR)/lib/librte_rcu.*)) +DPDK_LIB_LIST += rte_rcu +endif endif DPDK_SHARED_LIB = $(DPDK_LIB_LIST:%=$(DPDK_ABS_DIR)/lib/lib%.so) diff --git a/test/external_code/hello_world/Makefile b/test/external_code/hello_world/Makefile index 0bb913189..90265db90 100644 --- a/test/external_code/hello_world/Makefile +++ b/test/external_code/hello_world/Makefile @@ -33,7 +33,7 @@ DPDK_LIB = -lrte_eal -lrte_mempool -lrte_ring -lrte_mbuf -lrte_mempool_ring -lrte_pci DPDK_LIB += -lrte_bus_pci -lrte_kvargs -lrte_vhost -lrte_net -lrte_hash -lrte_telemetry -DPDK_LIB += -lrte_cryptodev -lrte_power +DPDK_LIB += -lrte_cryptodev -lrte_power -lrte_rcu # Shows how to compile both an external bdev and an external application against the SPDK combined shared object and dpdk shared objects. bdev_shared_combo: