summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorLong Wu <long.wu@corigine.com>2022-09-08 02:37:47 -0400
committerPatrice Buriez <patrice.buriez@chenapan.org>2022-12-14 21:10:38 +0000
commit37ac0f739020646ce94e44aadee389386f9de957 (patch)
treedd0ebdaa32aef829ac74b9190b8f00dbddf7d7cd /VNFs
parent1f50af6cc73dd820b7a2a9bc12d1d365bfe8dfd9 (diff)
Fix meson.build dependencies
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 <long.wu@corigine.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Chaoyong He <chaoyong.he@corigine.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com> Signed-off-by: Patrice Buriez <patrice.buriez@chenapan.org> Change-Id: I7ecb825ff532f1b63f79bff93470fa9203906aca
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/DPPD-PROX/meson.build3
1 files changed, 3 insertions, 0 deletions
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')