diff options
author | midipix <writeonce@midipix.org> | 2021-06-13 07:28:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-13 07:29:10 +0000 |
commit | 2963bfd72875fc709dd71688aed6767918a562c9 (patch) | |
tree | 1a6c53160f0569b00a6de2f603f4dc76f60f70aa /configure | |
parent | c006725fb3657d1abf479d857fca47c3467b503f (diff) | |
download | ntux-2963bfd72875fc709dd71688aed6767918a562c9.tar.bz2 ntux-2963bfd72875fc709dd71688aed6767918a562c9.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 ' !!' |