summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-12 11:49:54 +0000
committermidipix <writeonce@midipix.org>2021-06-12 12:15:45 +0000
commit5e47257f287f072cd23167bb04b86a2c221a74af (patch)
treeb26e231ef3dc5e7dc3f07b2c9963815a43fefd93
parent4a40f469d32cbf6a77d7a34d7e9bd8b84b8b7640 (diff)
downloadsofort-5e47257f287f072cd23167bb04b86a2c221a74af.tar.bz2
sofort-5e47257f287f072cd23167bb04b86a2c221a74af.tar.xz
build system: configure: config_ccenv(): require --sysroot when cross-compiling.
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index d2283e0..e324f8d 100755
--- a/configure
+++ b/configure
@@ -816,8 +816,17 @@ config_ccenv()
output_section_break
ccenv_set_native_variables
+ # require --sysroot when cross-compiling
+ if [ "$mb_cchost" != "$mb_native_cchost" ] && [ -z "$mb_sysroot" ]; then
+ error_msg ' !!'
+ error_msg "$mb_package: --sysroot is required when cross-compiling."
+ exit 2
+ fi
+
+ # re-generate Makefile.tmp
output_section_break
config_copy
+
}
config_custom_cfgdefs()