From 99b1257154e7b42f2aa5e3b01aa0334469d82812 Mon Sep 17 00:00:00 2001 From: Jacek Kalwas Date: Fri, 12 Feb 2021 11:32:45 -0500 Subject: [PATCH] build: swap pci with bus_pci libs on the list bus_pci depends on pci so it shall be listed before, otherwise it can result in linking issue e.g. /usr/bin/ld: /home/jkalwas/spdk/dpdk/build/lib/librte_bus_pci.a(bus_pci_pci_common.c.o): in function `pci_parse': pci_common.c:(.text+0x6e): undefined reference to `rte_pci_addr_parse' Signed-off-by: Jacek Kalwas Change-Id: Idff446df82c37844edc122d5171e8ffa684b296f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6404 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- lib/env_dpdk/env.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env_dpdk/env.mk b/lib/env_dpdk/env.mk index 292dd91f5..8edaf8558 100644 --- a/lib/env_dpdk/env.mk +++ b/lib/env_dpdk/env.mk @@ -48,7 +48,7 @@ DPDK_INC_DIR := $(DPDK_ABS_DIR)/include/dpdk endif DPDK_INC := -I$(DPDK_INC_DIR) -DPDK_LIB_LIST = rte_eal rte_mempool rte_ring rte_mbuf rte_pci rte_bus_pci rte_mempool_ring +DPDK_LIB_LIST = rte_eal rte_mempool rte_ring rte_mbuf rte_bus_pci rte_pci rte_mempool_ring ifeq ($(OS),Linux) DPDK_LIB_LIST += rte_power rte_ethdev rte_net