diff options
author | midipix <writeonce@midipix.org> | 2021-06-12 11:49:54 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-12 11:52:19 +0000 |
commit | 31df30f9cdd50c9d9a7de0d020ebe7cb7113fae8 (patch) | |
tree | e2366dce8eaa720da1d3974f4583758b7defdb03 /configure | |
parent | 5195d6e85b7480ac209f1433a8e8874501add0ee (diff) | |
download | slibtool-31df30f9cdd50c9d9a7de0d020ebe7cb7113fae8.tar.bz2 slibtool-31df30f9cdd50c9d9a7de0d020ebe7cb7113fae8.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() |