summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-12 14:54:28 +0000
committermidipix <writeonce@midipix.org>2021-06-12 14:55:56 +0000
commitc8077bee89f17a64ccfdb170f61c6fec474950a9 (patch)
treeba7619dc542b277b4365426c01b2c07d42b63f6e
parenta70e1205ccbd38269bacf656acfe7fc74b77ca24 (diff)
downloadbautomake-c8077bee89f17a64ccfdb170f61c6fec474950a9.tar.bz2
bautomake-c8077bee89f17a64ccfdb170f61c6fec474950a9.tar.xz
build system: configure: config_ccenv(): added verbose --sysroot error message.
-rwxr-xr-xconfigure21
1 files changed, 20 insertions, 1 deletions
diff --git a/configure b/configure
index 20fde7a..459e57d 100755
--- a/configure
+++ b/configure
@@ -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