diff options
author | midipix <writeonce@midipix.org> | 2021-06-12 11:49:54 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-12 12:15:41 +0000 |
commit | 27771583201db32256a0682cced3728e3549068e (patch) | |
tree | 9ced1d69b687eb311d20f8dc3fa3ee55d8b195da | |
parent | 5f4c972d3e2b469addd00fef8c7c5dc27135d242 (diff) | |
download | bfirm-27771583201db32256a0682cced3728e3549068e.tar.bz2 bfirm-27771583201db32256a0682cced3728e3549068e.tar.xz |
build system: configure: config_ccenv(): require --sysroot when cross-compiling.
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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() |