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 | ebb6079c7d523d0c6b88579eb1c1c259396552be (patch) | |
tree | e243422e77c3c60e4f4a0a86fcaaad80aaceeeb8 /configure | |
parent | 9d7f3e107d4f09ad2ac22140e1dcbe950356da69 (diff) | |
download | u16ports-ebb6079c7d523d0c6b88579eb1c1c259396552be.tar.bz2 u16ports-ebb6079c7d523d0c6b88579eb1c1c259396552be.tar.xz |
build system: configure: config_ccenv(): require --sysroot when cross-compiling.
Diffstat (limited to 'configure')
-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() |