classes/cargo: provide linker for BUILD_SYS

Ensure that we have a linker for the BUILD_SYS (Yocto) / HOST (Rust).
This commit is contained in:
Doug Goldstein
2016-11-28 16:27:14 -06:00
parent 2ffd11b9fe
commit f87bb05414

View File

@@ -48,6 +48,10 @@ EOF
echo "[target.${HOST_SYS}]" >> ${CARGO_HOME}/config
echo "linker = '${RUST_TARGET_CCLD}'" >> ${CARGO_HOME}/config
if [ "${HOST_SYS}" != "${BUILD_SYS}" ]; then
echo "[target.${BUILD_SYS}]" >> ${CARGO_HOME}/config
echo "linker = '${RUST_BUILD_CCLD}'" >> ${CARGO_HOME}/config
fi
}
RUSTFLAGS ??= ""