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.
This commit is contained in:
Steven Walter
2016-05-03 23:13:51 -04:00
parent 18c946267e
commit a74985c341
+2 -1
View File
@@ -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