mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ensure BASERUBY when cross-compiling
This commit is contained in:
parent
1b034d66f5
commit
3a575d13d5
2 changed files with 9 additions and 0 deletions
|
@ -76,6 +76,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p
|
||||||
HAVE_BASERUBY=no
|
HAVE_BASERUBY=no
|
||||||
])
|
])
|
||||||
AS_IF([test "$HAVE_BASERUBY" = no], [
|
AS_IF([test "$HAVE_BASERUBY" = no], [
|
||||||
|
AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])])
|
||||||
BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false"
|
BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false"
|
||||||
])
|
])
|
||||||
AC_SUBST(BASERUBY)
|
AC_SUBST(BASERUBY)
|
||||||
|
|
|
@ -24,6 +24,14 @@ REVISION_FORCE = PHONY
|
||||||
|
|
||||||
!ifndef CROSS_COMPILING
|
!ifndef CROSS_COMPILING
|
||||||
CROSS_COMPILING = no
|
CROSS_COMPILING = no
|
||||||
|
!else if "$(CROSS_COMPILING)" == "yes"
|
||||||
|
! if "$(HAVE_BASERUBY)" != "yes"
|
||||||
|
! error executable host ruby is required for cross-compiling
|
||||||
|
! endif
|
||||||
|
!else
|
||||||
|
! if "$(CROSS_COMPILING)" != "no"
|
||||||
|
! error Bad CROSS_COMPILING
|
||||||
|
! endif
|
||||||
!endif
|
!endif
|
||||||
!ifndef win_srcdir
|
!ifndef win_srcdir
|
||||||
win_srcdir = $(srcdir)/win32
|
win_srcdir = $(srcdir)/win32
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue