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 | f8a1b0c3a845df3bf77e1d71ff6c75003c50614e (patch) | |
tree | 203323f4aacdc3b0f4d8d4a37ef48a5daca6e4c9 /configure | |
parent | ee18418c7e0ba6b12e201f6b2248a989f308680e (diff) | |
download | bautomake-f8a1b0c3a845df3bf77e1d71ff6c75003c50614e.tar.bz2 bautomake-f8a1b0c3a845df3bf77e1d71ff6c75003c50614e.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() |