summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-13 07:28:30 +0000
committermidipix <writeonce@midipix.org>2021-06-13 07:31:32 +0000
commit0e40a8f4573e7a7b3fd97b157b1fb4e587b1c8cc (patch)
tree8b5139082a4a0ba0d7d07f7f3b1d823e961d98ed /configure
parent4623124cb4353d5ffed323f394c149f172d7c4b9 (diff)
downloadtpax-0e40a8f4573e7a7b3fd97b157b1fb4e587b1c8cc.tar.bz2
tpax-0e40a8f4573e7a7b3fd97b157b1fb4e587b1c8cc.tar.xz
build system: configure, ccenv: enhanced --sysroot logic.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 459e57d..b32b086 100755
--- a/configure
+++ b/configure
@@ -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 ' !!'