From: Richard Purdie Date: Wed, 25 Aug 2021 16:30:21 +0000 (+0100) Subject: rust-common: Add LDFLAGS to cc wrapper X-Git-Tag: uninative-3.4~23 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=62242e83c49b81a9ea65c9a1f5957a7c309d910a;p=openembedded-core.git rust-common: Add LDFLAGS to cc wrapper The -cc wrapper can be used for linking and can fail if key flags are missing: | error: linking with `[path]/tmp/work/x86_64-linux/rust-native/1.54.0-r0/wrapper/target-rust-cc` Add the flags to fix builds even if that is counter-intuitive (cc would normally be used for compiling and ccld for linking). Signed-off-by: Richard Purdie --- diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass index 70f1ee0e3b..8bed60f2ce 100644 --- a/meta/classes/rust-common.bbclass +++ b/meta/classes/rust-common.bbclass @@ -161,7 +161,7 @@ do_rust_create_wrappers () { create_wrapper "${RUST_BUILD_AR}" "${BUILD_AR}" # Yocto Target / Rust Target C compiler - create_wrapper "${RUST_TARGET_CC}" "${WRAPPER_TARGET_CC}" + create_wrapper "${RUST_TARGET_CC}" "${WRAPPER_TARGET_CC}" "${WRAPPER_TARGET_LDFLAGS}" # Yocto Target / Rust Target C++ compiler create_wrapper "${RUST_TARGET_CXX}" "${WRAPPER_TARGET_CXX}" # Yocto Target / Rust Target linker