diff options
author | Rickard Green <rickard@erlang.org> | 2021-07-02 17:20:01 +0200 |
---|---|---|
committer | Rickard Green <rickard@erlang.org> | 2021-07-02 17:20:01 +0200 |
commit | 5f78a0c4845ad16612aa210f3346fb3af1f1e681 (patch) | |
tree | 2598606c07bfab63b46db380566597c7c71a629d /lib/snmp | |
parent | d7f19868551b10d6f0be48ff1d76626676a4a2aa (diff) | |
parent | ab45153862228cda9379184ff6e14a3976b1f5f3 (diff) | |
download | erlang-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 'lib/snmp')
-rwxr-xr-x | lib/snmp/configure | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/snmp/configure b/lib/snmp/configure index be3102a67d..5544786437 100755 --- a/lib/snmp/configure +++ b/lib/snmp/configure @@ -2068,6 +2068,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 + # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 |