summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-06 07:28:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-06 07:28:11 +0000
commite0a35586689bdd4fc8713496876bdfba6b73b43b (patch)
treef8daa4bb7ddef8f4ebf74fd78eb0cb01343611ff
parent7a2263fb389cbd0fb9cc8d86ed909b7e080ef1e7 (diff)
Makefile.in: do not expand MJIT_CC if cross compiling
* Makefile.in (mjit_config.h): expand MJIT_CC only if native build, the path on cross compiling host is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 593a12f..52e04ab 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -598,8 +598,11 @@ mjit_config.h:
esac; \
done; \
}; \
- mjit_cc=`command -v $(MJIT_CC)`; \
- case $(arch) in *-mingw*) mjit_cc="`cygpath -m $$mjit_cc`";; esac; \
+ mjit_cc="$(MJIT_CC)"; \
+ if [ "$(CROSS_COMPILING)" = no ]; then \
+ mjit_cc="`command -v $$mjit_cc`"; \
+ case $(arch) in *-mingw*) mjit_cc="`cygpath -m $$mjit_cc`";; esac; \
+ fi; \
test "$(Q)" = @ || set -x; \
archs="$(UNIVERSAL_ARCHNAMES)"; \
arch_flag=""; \