From 7c494d94f0100d56d205e0bc6eb39454f29ebb3b Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Wed, 3 Aug 2016 07:31:19 -0400 Subject: [PATCH] rust: resolve issues with conflicted linking between host and target libs Signed-off-by: Derek Straka --- recipes-devtools/rust/rust.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index 730e9de..ddbc7ec 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -469,9 +469,9 @@ rust_do_install () { install -m 0644 "$tgt" "$td" done - ## rust will complain about multiple providers of the runtime libs - ## (libstd, libsync, etc.) without this. - (cd "${D}${libdir}" && ln -sf "rustlib/${HOST_SYS}/lib/lib"*.so .) + # Remove any files directly installed into libdir to avoid + # conflicts between cross and native + rm -f ${D}${libdir}/lib*.so } do_install () {