[Buildroot] [PATCH 6/7] package/grout: link against DPDK static libraries
Maxime Leroy
maxime at leroys.fr
Mon Dec 22 21:56:35 UTC 2025
DPDK always builds both shared and static libraries, regardless of the
default_library setting. That option only affects how applications are
linked, not what DPDK itself produces.
In Buildroot, Meson libraries are built as shared by default, and fully
static linking with glibc is not supported globally. However, linking
grout against the static DPDK libraries provides better performance.
A new Meson option has been added to force static linking against DPDK.
Use it in the Buildroot package.
Link: https://github.com/DPDK/grout/commit/ec9bf5a12
Signed-off-by: Maxime Leroy <maxime at leroys.fr>
---
package/grout/grout.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/grout/grout.mk b/package/grout/grout.mk
index 39bdc7f824..a7b8e65c5c 100644
--- a/package/grout/grout.mk
+++ b/package/grout/grout.mk
@@ -11,6 +11,8 @@ GROUT_LICENSE_FILES = licenses/BSD-3-clause.txt
# Avoid using buildroot commit hash
GROUT_CONF_ENV = GROUT_VERSION=$(GROUT_VERSION)
+# Link grout statically against DPDK for better performance
+GROUT_CONF_OPTS = -Ddpdk_static=true
GROUT_DEPENDENCIES = \
host-pkgconf \
--
2.43.0
More information about the buildroot
mailing list