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 /HOWTO/INSTALL-CROSS.md | |
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 'HOWTO/INSTALL-CROSS.md')
-rw-r--r-- | HOWTO/INSTALL-CROSS.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/HOWTO/INSTALL-CROSS.md b/HOWTO/INSTALL-CROSS.md index d5f014f072..7366811a43 100644 --- a/HOWTO/INSTALL-CROSS.md +++ b/HOWTO/INSTALL-CROSS.md @@ -128,14 +128,20 @@ be built. $ make `<HOST>` is the host/target system that you build for. It does not have to be -a full `CPU-VENDOR-OS` triplet, but can be. The full `CPU-VENDOR-OS` triplet -will be created by executing `$ERL_TOP/make/autoconf/config.sub <HOST>`. If -`config.sub` fails, you need to be more specific. +a full `CPU-VENDOR-OS` triplet, but can be. The full canonicalized +`CPU-VENDOR-OS` triplet will be created by executing +`$ERL_TOP/make/autoconf/config.sub <HOST>`. If `config.sub` fails, you need +to be more specific. `<BUILD>` should equal the `CPU-VENDOR-OS` triplet of the system that you build on. If you execute `$ERL_TOP/make/autoconf/config.guess`, it will in most cases print the triplet you want to use for this. +The use of `<HOST>` and `<BUILD>` values that differ will trigger cross +compilation. Note that if `<HOST>` and `<BUILD>` differ, the canonicalized +values of `<HOST>` and `<BUILD>` must also differ. If they do not, the +configuration will fail. + Pass the cross compilation variables as command line arguments to `configure` using a `<VARIABLE>=<VALUE>` syntax. |