Skip to content

Commit 5cf2411

Browse files
committed
build: always link statically against DPDK
DPDK always builds both shared and static libraries, regardless of the default_library setting. The default_library option only controls how applications are linked, not what DPDK produces. In Buildroot, Meson libraries are built as shared by default and static linking with glibc is not supported globally. However, linking our application against the DPDK static library provides better performance. Force static linking by using static: true on the DPDK dependency. Signed-off-by: Maxime Leroy <[email protected]>
1 parent 58a3ed9 commit 5cf2411

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dpdk_dep = dependency(
6060
'libdpdk',
6161
version : '>= 24.11.3',
6262
fallback: ['dpdk', 'dpdk_dep'],
63+
static: true,
6364
default_options: [
6465
'buildtype=release',
6566
'c_std=c11',

0 commit comments

Comments
 (0)