From 170a97758710a3b590520a0a936bd0161d7e41b3 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 29 Aug 2016 21:35:53 -0500 Subject: [PATCH] tell cargo which linker to use --- ci/env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/env.sh b/ci/env.sh index 9addf55..feeac22 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -40,6 +40,8 @@ if [[ $TARGET != $HOST && ! $TARGET =~ ^i.86- ]]; then ;; esac + export CARGO_TARGET_$(echo $TARGET | tr a-z- A-Z_)_LINKER=$GCC_TRIPLE-gcc + if [[ $RUN_TESTS == y ]]; then # NOTE(export) so this can reach the processes that `cargo test` spawns export QEMU_LD_PREFIX=/usr/$GCC_TRIPLE