summaryrefslogtreecommitdiff
path: root/erts/configure
diff options
context:
space:
mode:
authorRickard Green <rickard@erlang.org>2021-07-02 17:20:01 +0200
committerRickard Green <rickard@erlang.org>2021-07-02 17:20:01 +0200
commit5f78a0c4845ad16612aa210f3346fb3af1f1e681 (patch)
tree2598606c07bfab63b46db380566597c7c71a629d /erts/configure
parentd7f19868551b10d6f0be48ff1d76626676a4a2aa (diff)
parentab45153862228cda9379184ff6e14a3976b1f5f3 (diff)
downloaderlang-5f78a0c4845ad16612aa210f3346fb3af1f1e681.tar.gz
Merge branch 'rickard/cross-build-host-triplets-check/ERIERL-668/OTP-17514' into rickard/cross-build-host-triplets-check/master/ERIERL-668/OTP-17514
* rickard/cross-build-host-triplets-check/ERIERL-668/OTP-17514: Update configure scripts Fail if canonicalized host and build equals when cross compiling
Diffstat (limited to 'erts/configure')
-rwxr-xr-xerts/configure18
1 files changed, 18 insertions, 0 deletions
diff --git a/erts/configure b/erts/configure
index 9614ce6af2..cfc81d437b 100755
--- a/erts/configure
+++ b/erts/configure
@@ -3830,6 +3830,24 @@ esac
;;
esac
+ if test "$cross_compiling" = "yes" -a "$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 'make/autoconf/config.sub' script.
+ " "$LINENO" 5
+fi
+
if test "$cross_compiling" = "yes"; then
CROSS_COMPILING=yes