зеркало из https://github.com/github/ruby.git
Ensure BASERUBY when cross-compiling
This commit is contained in:
Родитель
1b034d66f5
Коммит
3a575d13d5
|
@ -76,6 +76,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p
|
|||
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"
|
||||
])
|
||||
AC_SUBST(BASERUBY)
|
||||
|
|
|
@ -24,6 +24,14 @@ REVISION_FORCE = PHONY
|
|||
|
||||
!ifndef CROSS_COMPILING
|
||||
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
|
||||
!ifndef win_srcdir
|
||||
win_srcdir = $(srcdir)/win32
|
||||
|
|
Загрузка…
Ссылка в новой задаче