summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorRickard Green <rickard@erlang.org>2021-07-02 16:41:39 +0200
committerRickard Green <rickard@erlang.org>2021-07-02 17:12:17 +0200
commitab45153862228cda9379184ff6e14a3976b1f5f3 (patch)
tree03e56da3cbe98ef713c3adcad4d629b78ab84eab /make
parent9f4e1a352f31d700d424bf6cd137722a86630344 (diff)
downloaderlang-ab45153862228cda9379184ff6e14a3976b1f5f3.tar.gz
Update configure scripts
Diffstat (limited to 'make')
-rwxr-xr-xmake/configure17
1 files changed, 17 insertions, 0 deletions
diff --git a/make/configure b/make/configure
index 81cdd2085f..02204f72d0 100755
--- a/make/configure
+++ b/make/configure
@@ -2793,6 +2793,7 @@ IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
else
host_os=$host
fi
@@ -2801,6 +2802,22 @@ TARGET=$host
if test "$cross_compiling" = "yes"; then
+ if test "$build" = "$host"; then
+ as_fn_error $? "
+ Cross compiling with the same canonicalized 'host' value
+ as the canonicalized 'build' value.
+
+ We are cross compiling since the '--host=$host_alias'
+ and the '--build=$build_alias' arguments differ. When
+ cross compiling Erlang/OTP also the canonicalized values of
+ the '--build' and the '--host' arguments *must* differ. The
+ canonicalized values of these arguments however both equals:
+ $host
+
+ You can check the canonical value by passing a value as
+ argument to the 'erts/autoconf/config.sub' script.
+ " "$LINENO" 5
+ fi
CROSS_COMPILING=yes
else
CROSS_COMPILING=no