From 7e6a0621d62194671fe033a4200a93175c5c0773 Mon Sep 17 00:00:00 2001 From: travankor Date: Mon, 6 Apr 2020 00:38:29 -0700 Subject: [PATCH] cargo.sh: don't hardcode the path. --- common/build-style/cargo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh index 0257a633929..488382166a3 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -16,8 +16,9 @@ do_check() { do_install() { : ${make_cmd:=cargo} + : ${make_install_args:=--path .} - ${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ + ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ --locked ${configure_args} ${make_install_args} rm -f "${DESTDIR}"/usr/.crates.toml rm -f "${DESTDIR}"/usr/.crates2.json