diff options
author | midipix <writeonce@midipix.org> | 2021-06-12 11:49:54 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-12 12:15:43 +0000 |
commit | e5f17defad8c3d2c4c29e88aad8c709d78954d50 (patch) | |
tree | 0f8aec2b1b54bb2a1b01d17d3d08da8ef0f484f7 | |
parent | 02f172410d6d9450cf51b02a249b31762d35b19a (diff) | |
download | ntcon-e5f17defad8c3d2c4c29e88aad8c709d78954d50.tar.bz2 ntcon-e5f17defad8c3d2c4c29e88aad8c709d78954d50.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() |