From 8c4370d5f16c4d1ff653a05845785fd99b170929 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Tue, 26 May 2015 15:44:15 -0400 Subject: [PATCH] rust: support LINK_{} var --- recipes/rust/rust.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index 3ba3cd4..f3d2738 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -249,6 +249,10 @@ def rust_gen_mk_cfg(d, thing): '-e', 's/^CPP_{}.*$/CPP_{} := gcc -E/'.format(sys, sys), '-e', 's/^AR_{}.*$/AR_{} := ar/'.format(sys, sys), + # Some targets don't have LINK even though it is required to build. + '-e', 's/^LINK_{}.*$//'.format(sys), + '-e', '2 a LINK_{} := gcc'.format(sys), + # Append our flags to the existing ones '-e', '/^CFG_JEMALLOC_CFLAGS/ s;$; {};'.format(cflags_for(d, thing)), '-e', '/^CFG_GCCISH_CFLAGS/ s;$; {};'.format(cflags_for(d, thing)),