]> git.droids-corp.org - dpdk.git/commitdiff
buildtools/chkincs: remove unnecessary linkage
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 11 Feb 2022 11:36:40 +0000 (11:36 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 12 Feb 2022 13:26:16 +0000 (14:26 +0100)
The chkincs binary does not actually call any functions in either libs
or drivers, so we can simplify the linkage of it to just using shared
linkage of the libraries (via meson dependencies). This means a slightly
faster link time as well as making the chkincs binary much, much
smaller.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
buildtools/chkincs/meson.build

index 5ffca897612009470fb38a783caca965c3039095..7ea136ff95ad67c93f59a1e02125e01891e05e0b 100644 (file)
@@ -19,12 +19,11 @@ sources += gen_c_files.process(dpdk_chkinc_headers)
 
 deps = []
 foreach l:enabled_libs
-    deps += get_variable('static_rte_' + l)
+    deps += get_variable('shared_rte_' + l)
 endforeach
 
 executable('chkincs', sources,
         c_args: cflags,
         include_directories: includes,
         dependencies: deps,
-        link_whole: dpdk_static_libraries + dpdk_drivers,
         install: false)