From 0ffbe5b5eacade0682259c9c408be3f11bc6a87f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Sep 2023 15:26:41 +0200 Subject: [PATCH] python/build/autotools: add --host=... only if cross-compiling --- python/build/autotools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/build/autotools.py b/python/build/autotools.py index bf5d94a58..23c382c78 100644 --- a/python/build/autotools.py +++ b/python/build/autotools.py @@ -58,11 +58,13 @@ class AutotoolsProject(MakeProject): 'ARFLAGS=' + toolchain.arflags, 'RANLIB=' + toolchain.ranlib, 'STRIP=' + toolchain.strip, - '--host=' + toolchain.host_triplet, '--prefix=' + toolchain.install_prefix, '--disable-silent-rules', ] + if toolchain.host_triplet is not None: + configure.append('--host=' + toolchain.host_triplet) + configure.extend(self.configure_args) try: