diff options
| author | OGINO Masanori <masanori.ogino@gmail.com> | 2015-06-22 12:53:34 +0900 |
|---|---|---|
| committer | OGINO Masanori <masanori.ogino@gmail.com> | 2015-06-22 12:53:34 +0900 |
| commit | 59399088ca168621a6fcd012875fbe83db09d706 (patch) | |
| tree | 2d5da8bb77dff82d5193326b2deed1988913a4ef | |
| parent | 4a788a2003d6ad66b768f520a13f251c6800ab7d (diff) | |
| download | rust-59399088ca168621a6fcd012875fbe83db09d706.tar.gz rust-59399088ca168621a6fcd012875fbe83db09d706.zip | |
Put CFG_BUILD triples into CFG_HOST triples.
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>
| -rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure index b0549205ace..1db7f483a9f 100755 --- 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; |
