From 310cc353a10ee2a8c5b4084e1e491ed18a520a72 Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Mon, 11 Jul 2016 15:15:04 -0400 Subject: [PATCH] Put crate_hash and rpath in RUSTFLAGS for Cargo RUSTFLAGS is used by Cargo and always passed to the compiler. Put our non-standard crate_hash argument there because it is required for reproducible builds. Add the rpath option to avoid having to patch Cargo.toml for this and remove the function that does so. Signed-off-by: Tyler Hall --- classes/cargo.bbclass | 13 +------------ classes/rust.bbclass | 3 ++- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/classes/cargo.bbclass b/classes/cargo.bbclass index 915c0d6..3d1605c 100644 --- a/classes/cargo.bbclass +++ b/classes/cargo.bbclass @@ -42,18 +42,6 @@ cargo_do_configure () { echo "]" >>../.cargo/config } -rust_cargo_patch () { - # FIXME: if there is already an entry for this target, in an existing - # cargo/config, this won't work. - cd "${S}" - cat >>Cargo.toml <