From 37ac0f739020646ce94e44aadee389386f9de957 Mon Sep 17 00:00:00 2001 From: Long Wu Date: Thu, 8 Sep 2022 02:37:47 -0400 Subject: Fix meson.build dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some environments, the compile command does not have "-ldl" default. Add dl deps in meson.build to avoid compilation failures in these environments. Also add rte_bus_pci, which is a dependency for rte_pmd_ring or rte_net_ring, and was triggering linker warning. Signed-off-by: Long Wu Reviewed-by: Simon Horman Reviewed-by: Chaoyong He Reviewed-by: Niklas Söderlund Signed-off-by: Patrice Buriez Change-Id: I7ecb825ff532f1b63f79bff93470fa9203906aca --- VNFs/DPPD-PROX/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VNFs/DPPD-PROX/meson.build b/VNFs/DPPD-PROX/meson.build index 217a9679..564e5b56 100644 --- a/VNFs/DPPD-PROX/meson.build +++ b/VNFs/DPPD-PROX/meson.build @@ -119,6 +119,7 @@ ncurses_dep = dependency('ncurses', required: true) ncursesw_dep = dependency('ncursesw', required: true) libedit_dep = dependency('libedit', required: true) math_dep = cc.find_library('m', required : false) +dl_dep = cc.find_library('dl', required : true) deps = [dpdk_dep, tinfo_dep, @@ -128,6 +129,7 @@ deps = [dpdk_dep, ncursesw_dep, libedit_dep, math_dep, + dl_dep, lua_dep] # Grab the DPDK version here "manually" as it is not available in the dpdk_dep @@ -135,6 +137,7 @@ deps = [dpdk_dep, dpdk_version = run_command('pkg-config', '--modversion', 'libdpdk').stdout() # Explicitly add these to the dependency list +deps += [cc.find_library('rte_bus_pci', required: true)] deps += [cc.find_library('rte_bus_vdev', required: true)] if dpdk_version.version_compare('<20.11.0') -- cgit 1.2.3-korg