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 | a6955073545688f2330b328c24c5f0a27954a262 (patch) | |
tree | 1c5337d68ed3b63c74a19aec227ee251c8c6c74b | |
parent | 02ae54954b29e024e970ee6bf25faa3c92e6c9ae (diff) | |
download | ntux-a6955073545688f2330b328c24c5f0a27954a262.tar.bz2 ntux-a6955073545688f2330b328c24c5f0a27954a262.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() |