summaryrefslogtreecommitdiffstats
path: root/meta/classes/rust-common.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-25 17:30:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-26 22:09:44 +0100
commitb7fc3113a7126121a9768549e3a839bbcb64fb71 (patch)
treefad5f3e4facf8e9de48133219c7a95c7f6786a98 /meta/classes/rust-common.bbclass
parentfe90461e2d79718e449172886df00c72d8e2f0e9 (diff)
downloadpoky-b7fc3113a7126121a9768549e3a839bbcb64fb71.tar.gz
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). (From OE-Core rev: 62242e83c49b81a9ea65c9a1f5957a7c309d910a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rust-common.bbclass')
-rw-r--r--meta/classes/rust-common.bbclass2
1 files changed, 1 insertions, 1 deletions
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 () {
161 create_wrapper "${RUST_BUILD_AR}" "${BUILD_AR}" 161 create_wrapper "${RUST_BUILD_AR}" "${BUILD_AR}"
162 162
163 # Yocto Target / Rust Target C compiler 163 # Yocto Target / Rust Target C compiler
164 create_wrapper "${RUST_TARGET_CC}" "${WRAPPER_TARGET_CC}" 164 create_wrapper "${RUST_TARGET_CC}" "${WRAPPER_TARGET_CC}" "${WRAPPER_TARGET_LDFLAGS}"
165 # Yocto Target / Rust Target C++ compiler 165 # Yocto Target / Rust Target C++ compiler
166 create_wrapper "${RUST_TARGET_CXX}" "${WRAPPER_TARGET_CXX}" 166 create_wrapper "${RUST_TARGET_CXX}" "${WRAPPER_TARGET_CXX}"
167 # Yocto Target / Rust Target linker 167 # Yocto Target / Rust Target linker