All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mesa: fix runpath with native llvm-config in target sysroot
@ 2022-11-09  3:04 maxime.roussinbelanger
  2022-11-09 20:48 ` [OE-core] " Alexandre Belloni
  0 siblings, 1 reply; 6+ messages in thread
From: maxime.roussinbelanger @ 2022-11-09  3:04 UTC (permalink / raw)
  To: openembedded-core; +Cc: Maxime Roussin-Bélanger

From: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>

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 <maxime.roussinbelanger@gmail.com>
---
 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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-10  4:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09  3:04 [PATCH] mesa: fix runpath with native llvm-config in target sysroot maxime.roussinbelanger
2022-11-09 20:48 ` [OE-core] " Alexandre Belloni
2022-11-09 21:04   ` Maxime Roussin-Bélanger
2022-11-09 21:23     ` Alexandre Belloni
2022-11-09 21:42       ` Maxime Roussin-Bélanger
2022-11-10  4:50         ` Vincent Davis Jr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.