diff options
author | midipix <writeonce@midipix.org> | 2021-06-13 07:28:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-13 07:31:32 +0000 |
commit | 6024baf13b57641730551e805434f08abb3e252f (patch) | |
tree | aa8830368db5b8325d80e2280242f79623ee08db /configure | |
parent | 674cef9038daca1c9be3a9e545a062892547507e (diff) | |
download | w32lib-6024baf13b57641730551e805434f08abb3e252f.tar.bz2 w32lib-6024baf13b57641730551e805434f08abb3e252f.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 ' !!' |