From 5a933d0f084357ed585fbc91d081038549c89f96 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Tue, 8 Dec 2015 16:13:09 -0500 Subject: [PATCH] rust: inhibit stripping for cross compiler to avoid errors --- recipes-devtools/rust/rust.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index 3974d41..2e2efc7 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -412,6 +412,13 @@ do_install_class-cross () { rust_do_install } +# using host-strip on target .so files generated by this recipie causes build errors. +# for now, disable stripping. +# A better (but more complex) approach would be to mimic gcc-runtime and build +# the target.so files in a seperate .bb file. +INHIBIT_PACKAGE_STRIP_class-cross = "1" +INHIBIT_SYSROOT_STRIP_class-cross = "1" + ## }}} BBCLASSEXTEND = "cross native"