diff options
author | midipix <writeonce@midipix.org> | 2021-06-13 07:28:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-13 07:31:31 +0000 |
commit | c5a7c76183a31b8f0878d3e420adc4d97cded657 (patch) | |
tree | 36874d32b7ef62f1dce19b67500a6f9f652025e3 /configure | |
parent | 0273767dc4d40df94b41d9540e53e009ab153b31 (diff) | |
download | sltdl-c5a7c76183a31b8f0878d3e420adc4d97cded657.tar.bz2 sltdl-c5a7c76183a31b8f0878d3e420adc4d97cded657.tar.xz |
build system: configure, ccenv: enhanced --sysroot logic.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -813,8 +813,15 @@ config_ccenv() output_section_break ccenv_set_native_variables + # implicit --sysroot for use with pkgconf and friends + if [ -z "$mb_sysroot" ]; then + mb_sysroot="$ccenv_host_sysroot" + fi + # require --sysroot when cross-compiling - if [ "$mb_cchost" != "$mb_native_cchost" ] && [ -z "$mb_sysroot" ]; then + if [ "$mb_cchost" != "$mb_native_cchost" ] \ + && [ "$ccenv_host_cc" != "$ccenv_native_cc" ] \ + && [ -z "$mb_sysroot" ]; then mb_pretty=$(printf "%-${#mb_package}s" '') error_msg ' !!' |