From 928b2916213eb9d11af9b22639127be5dccaf900 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Thu, 4 Dec 2014 00:09:46 -0500 Subject: [PATCH] cargo: env vars --- recipes/cargo/cargo.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/cargo/cargo.inc b/recipes/cargo/cargo.inc index ef94540..e4dde16 100644 --- a/recipes/cargo/cargo.inc +++ b/recipes/cargo/cargo.inc @@ -44,9 +44,9 @@ do_configure () { do_compile () { # env vars are used by gcc-rs - export CC="${RUST_CC}" - export CFLAGS="${RUST_CFLAGS}" - export AR="${AR}" + # HOST is set once we have this cargo, but we need to manually + # set it for the bootstrap. + export HOST="${BUILD_SYS}" export TARGET_CC="${RUST_CC}" export TARGET_CFLAGS="${RUST_CFLAGS}" export TARGET_AR="${AR}"