diff options
author | midipix <writeonce@midipix.org> | 2021-06-12 11:49:54 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-12 12:15:46 +0000 |
commit | e676dd2ca5d40ca7b96a04e7f7db65234e96917b (patch) | |
tree | 531163502360e0b2f1e0a3948f4f562d72f5dd66 | |
parent | 28b42afd35ab7bccf8d2f664fd4fe108d39a0587 (diff) | |
download | w32lib-e676dd2ca5d40ca7b96a04e7f7db65234e96917b.tar.bz2 w32lib-e676dd2ca5d40ca7b96a04e7f7db65234e96917b.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() |