From: Zqiang <[email protected]>

There is a ${RECIPE_SYSROOT}/usr/lib64/../lib64/librt.so in Libs.private
which should be -lrt.

Signed-off-by: Zqiang <[email protected]>
---
 recipes-extended/dpdk/dpdk_20.11.1.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-extended/dpdk/dpdk_20.11.1.bb 
b/recipes-extended/dpdk/dpdk_20.11.1.bb
index d96fd8b..0bb27fa 100644
--- a/recipes-extended/dpdk/dpdk_20.11.1.bb
+++ b/recipes-extended/dpdk/dpdk_20.11.1.bb
@@ -43,6 +43,9 @@ do_install_append(){
         fi
     done
 
+    # There is a ${RECIPE_SYSROOT}/usr/lib64/../lib64/librt.so in Libs.private
+    # which should be -lrt.
+    sed -i 's#${RECIPE_SYSROOT}[^ ]*/librt.so#-lrt#' 
${D}/${libdir}/pkgconfig/libdpdk.pc
 }
 
 PACKAGES =+ "${PN}-examples ${PN}-tools"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7164): 
https://lists.yoctoproject.org/g/meta-intel/message/7164
Mute This Topic: https://lists.yoctoproject.org/mt/84436517/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to