libstd-rs: use a separate variable for --features

This will allow features to be easily modified through a bbappend file
in another layer.
This commit is contained in:
Steven Walter
2017-08-04 13:34:10 -04:00
parent b82e450b5a
commit 8b471a1bdc
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ RUSTFLAGS += "-L ${STAGING_LIBDIR} -C link-arg=-Wl,-soname,libstd.so"
S = "${RUSTSRC}/src/libstd"
CARGO_BUILD_FLAGS += "--features '${CARGO_FEATURES}'"
do_compile_prepend () {
export CARGO_TARGET_DIR="${B}"
# For Rust 1.13.0 and newer