The problem with shared library is that generated object files are also required additionaly by the application. So better approach would be to build statically !
Error log: libxdp: Couldn't find a BPF file with name xsk_def_xdp_prog.o xsk_configure(): Failed to create xsk socket Enable production option too. Signed-off-by: Naveen Saini <[email protected]> --- .../recipes-support/xdp-tools/xdp-tools_1.2.8.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb index 99c435d..7cd49a0 100644 --- a/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb +++ b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb @@ -21,13 +21,11 @@ S = "${WORKDIR}/git" inherit pkgconfig -EXTRA_OEMAKE += "PREFIX=${D}${prefix} LIBDIR=${D}${libdir}" +EXTRA_OEMAKE += "PREFIX=${D}${prefix} LIBDIR=${D}${libdir} BUILD_STATIC_ONLY=1 PRODUCTION=1" -export STAGING_INCDIR +CFLAGS += "-fPIC" -do_configure:prepend () { - export DYNAMIC_LIBXDP=1 -} +export STAGING_INCDIR do_install () { oe_runmake install -- 2.37.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#7809): https://lists.yoctoproject.org/g/meta-intel/message/7809 Mute This Topic: https://lists.yoctoproject.org/mt/96798732/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
