From: Maxime Roussin-Bélanger <[email protected]>

llvm-config is copied from native to target sysroot, it shouldn't be
allowed to use target shared libraries when it loads.

Remove all runpath so it uses shared library from host system since
native llvm-config is compiled with hosttools compiler.

Signed-off-by: Maxime Roussin-Bélanger <[email protected]>
---
 meta/recipes-graphics/mesa/mesa.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 67cfb4f6c1..abc2c3f4c4 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -61,6 +61,7 @@ do_configure:prepend () {
        if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then
                cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} 
${STAGING_BINDIR}
                cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR}
+               chrpath -d ${STAGING_BINDIR}/llvm-config
        fi
 }
 
-- 
2.36.0

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

Reply via email to