diff options
author | midipix <writeonce@midipix.org> | 2021-06-12 14:54:28 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-12 14:55:59 +0000 |
commit | b878b5d350beda2a127eed6cce8244252f2f0f00 (patch) | |
tree | 0b9ed714d83eed8ef6121a8e23b8d26d498662e3 /configure | |
parent | 53aca8ae2203e6b2d064e5a89ced0c1730c08b79 (diff) | |
download | ntcon-b878b5d350beda2a127eed6cce8244252f2f0f00.tar.bz2 ntcon-b878b5d350beda2a127eed6cce8244252f2f0f00.tar.xz |
build system: configure: config_ccenv(): added verbose --sysroot error message.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -815,8 +815,27 @@ config_ccenv() # require --sysroot when cross-compiling if [ "$mb_cchost" != "$mb_native_cchost" ] && [ -z "$mb_sysroot" ]; then + mb_pretty=$(printf "%-${#mb_package}s" '') + + error_msg ' !!' + error_msg "$mb_package: host machine: $mb_cchost" + error_msg "$mb_package: host compiler: $ccenv_host_cc" + + error_msg ' !!' + error_msg "$mb_package: native machine: $mb_native_cchost" + error_msg "$mb_package: native compiler: $ccenv_native_cc" + + error_msg ' !!' + error_msg "$mb_package: detected host machine and native machine differ, assuming cross-compilation." + + error_msg ' !!' + error_msg "$mb_package: native compilation mode can be forced via --cchost=$mb_native_cchost" + error_msg "${mb_pretty} or otherwise by setting the NATIVE_CC environment variable to '$ccenv_host_cc'," + error_msg "${mb_pretty} however that should almost never be necessary; then again," + error_msg "${mb_pretty} forcing native mode when cross-building is strictly prohibited." + error_msg ' !!' - error_msg "$mb_package: --sysroot is required when cross-compiling." + error_msg "$mb_package: error: --sysroot is required when cross-compiling." exit 2 fi |