From 485686b3ae836104be279e358c045ef6b664f2da Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 12 Jun 2021 11:49:54 +0000 Subject: build system: configure: config_ccenv(): require --sysroot when cross-compiling. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- cgit v1.2.3