Fix meson.build dependencies 80/73480/3
authorLong Wu <long.wu@corigine.com>
Thu, 8 Sep 2022 06:37:47 +0000 (02:37 -0400)
committerPatrice Buriez <patrice.buriez@chenapan.org>
Wed, 14 Dec 2022 21:10:38 +0000 (21:10 +0000)
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

VNFs/DPPD-PROX/meson.build

index 217a967..564e5b5 100644 (file)
@@ -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')