]> git.lizzy.rs Git - rust.git/commitdiff
Put CFG_BUILD triples into CFG_HOST triples.
authorOGINO Masanori <masanori.ogino@gmail.com>
Mon, 22 Jun 2015 03:53:34 +0000 (12:53 +0900)
committerOGINO Masanori <masanori.ogino@gmail.com>
Mon, 22 Jun 2015 03:53:34 +0000 (12:53 +0900)
I've configured with the parameters suggested by @brson in #18670 and
confirmed that it works on Gentoo Linux amd64.

Fixes #18670.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
configure

index b0549205ace1e26a8f2821a2c30bafde14075016..1db7f483a9f5c4914859afe979ae28ba40718548 100755 (executable)
--- a/configure
+++ b/configure
@@ -1037,6 +1037,14 @@ for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
   CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
 done
 
+# copy build-triples to host-triples so that builds are a subset of hosts
+V_TEMP=""
+for i in $CFG_BUILD $CFG_HOST;
+do
+   echo "$V_TEMP" | grep -qF $i || V_TEMP="$V_TEMP${V_TEMP:+ }$i"
+done
+CFG_HOST=$V_TEMP
+
 # copy host-triples to target-triples so that hosts are a subset of targets
 V_TEMP=""
 for i in $CFG_HOST $CFG_TARGET;