From e0a35586689bdd4fc8713496876bdfba6b73b43b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 6 Nov 2018 07:28:11 +0000 Subject: 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 --- Makefile.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 593a12f13e..52e04ab23b 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=""; \ -- cgit v1.2.3