From a74985c3414b83f8f75e5dfc0479ec639232d086 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Tue, 3 May 2016 23:13:51 -0400 Subject: [PATCH] rust-bin.bbclass: allow to opt-out of prefer-dynamic prefer-dynamic makes sense in many cases, but we needn't force recipes to use it all the time. --- classes/rust-bin.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/rust-bin.bbclass b/classes/rust-bin.bbclass index b5d239b..337a0a2 100644 --- a/classes/rust-bin.bbclass +++ b/classes/rust-bin.bbclass @@ -34,7 +34,8 @@ OVERLAP_DEPS = "${@get_overlap_deps(d)}" # Prevents multiple static copies of standard library modules # See https://github.com/rust-lang/rust/issues/19680 -RUSTC_FLAGS += "-C prefer-dynamic" +RUSTC_PREFER_DYNAMIC = "-C prefer-dynamic" +RUSTC_FLAGS += "${RUSTC_PREFER_DYNAMIC}" rustlib_suffix="${TUNE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${HOST_SYS}/lib" # Native sysroot standard library path