[PATCH dpdk v2 2/2] meson: add drivers to dynamic libraries

Robin Jarry rjarry at redhat.com
Thu Oct 15 13:26:10 CEST 2026


dpdk_shared_lib_deps only collects library dependencies, so DPDK built
as a meson subproject with shared libraries never links against
drivers that install public headers (e.g. bus/pci, bus/vdev). Add
these drivers to dpdk_shared_lib_deps as well, mirroring what is
already done for libraries in lib/meson.build.

Signed-off-by: Robin Jarry <rjarry at redhat.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---

Notes:
    v2: added driver shared libs to the list for pkg-config

 drivers/meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/meson.build b/drivers/meson.build
index 7146f036c4c9..0e8e69798bdf 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -405,6 +405,10 @@ foreach subpath:subdirs
                 dependencies: static_deps)
 
         dpdk_static_drivers += static_lib
+        if headers.length() > 0
+            dpdk_libraries += shared_lib
+            dpdk_shared_lib_deps += shared_dep
+        endif
 
         set_variable('shared_ at 0@'.format(lib_name), shared_dep)
         set_variable('static_ at 0@'.format(lib_name), static_dep)
-- 
2.56.0



More information about the dev mailing list