summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-21 23:21:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-21 23:21:52 +0900
commit43a9a974e276dc49b03ec81ccace0adb534a3d20 (patch)
tree970e38f8fe361799d1a7e1e1ca337fecda00b8e2
parentece917bab38248e1fd1974e597d66df8e33d862e (diff)
[Bug #17021] Make host_* values consistent with target_*
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3800
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 4e4a52f066..3174781f03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -371,9 +371,14 @@ AC_SUBST(CC_VERSION_MESSAGE, $cc_version_message)
: ${DLDFLAGS="$LDFLAGS"}
RUBY_UNIVERSAL_ARCH
-AS_IF([test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no], [
+AS_IF([test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "${universal_binary:-no}" = no], [
RUBY_DEFAULT_ARCH("$target_cpu")
])
+host_os=$target_os
+host_vendor=$target_vendor
+host_cpu=$target_cpu
+host=$target
+host_alias=$target_alias
AC_CACHE_CHECK([for $AR flags], [rb_cv_arflags], [
AS_IF([$AR rcD conftest.a > /dev/null 2>&1 && rm conftest.a],