]> code.ossystems Code Review - openembedded-core.git/commit
rust-common: Add LDFLAGS to cc wrapper
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Aug 2021 16:30:21 +0000 (17:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Aug 2021 21:09:25 +0000 (22:09 +0100)
commit62242e83c49b81a9ea65c9a1f5957a7c309d910a
tree51dc850049acef7295c37b76bf2ada4b6c194cbf
parent099c761ffddcc828329d3083cc8f3d24b43e9277
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 <richard.purdie@linuxfoundation.org>
meta/classes/rust-common.bbclass