[PATCH v5 2/2] buildtools: when building static library use static deps
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Apr 15 19:12:48 CEST 2024
Use the value of default_library and use it when building deps instead
of always using static deps so we get the correct static or shared deps.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
Reviewed-by: Bruce Richardson <bruce.richardson at intel.com>
---
buildtools/chkincs/meson.build | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build
index f2dadca..5546489 100644
--- a/buildtools/chkincs/meson.build
+++ b/buildtools/chkincs/meson.build
@@ -20,10 +20,11 @@ sources += gen_c_files.process(dpdk_chkinc_headers)
# some driver SDK headers depend on these two buses, which are mandatory in build
# so we always include them in deps list
-deps = [get_variable('shared_rte_bus_vdev'), get_variable('shared_rte_bus_pci')]
+library_type = get_option('default_library')
+deps = [get_variable(library_type + '_rte_bus_vdev'), get_variable(library_type + '_rte_bus_pci')]
# add the rest of the libs to the dependencies
foreach l:dpdk_libs_enabled
- deps += get_variable('shared_rte_' + l)
+ deps += get_variable(library_type + '_rte_' + l)
endforeach
executable('chkincs', sources,
--
1.8.3.1
More information about the dev
mailing list