diff mbox series

[meta-dpdk,2/4] dpdk: add PACKAGECONFIG to build shared libraries

Message ID 20260423054732.216696-2-anuj.mittal@oss.qualcomm.com
State New
Headers show
Series [meta-dpdk,1/4] dpdk: move common code to inc | expand

Commit Message

Anuj Mittal April 23, 2026, 5:47 a.m. UTC
By default, DPDK performs static linking for applications and examples
[1]. This behaviour can cause the build directory to exceed 100 GiB.

Provide a PACKAGECONFIG to allow building with shared libraries only.

[1] dpdk commit 93b1f90ae174 ("build: change default library type to
static")

Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 recipes-extended/dpdk/dpdk.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 0a947fc..d59af8d 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -26,6 +26,7 @@  COMPATIBLE_HOST:linux-gnux32 = "null"
 PACKAGECONFIG ??= " "
 PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools"
 PACKAGECONFIG[libvirt] = ",,libvirt"
+PACKAGECONFIG[shared]  = "--default-library=shared, --default-library=static,"
 
 RDEPENDS:${PN} += "pciutils python3-core"
 RDEPENDS:${PN}-examples += "bash"