diff --git a/setupext.py b/setupext.py index 69835c12f72c..0387223b9487 100644 --- a/setupext.py +++ b/setupext.py @@ -635,7 +635,7 @@ def do_custom_build(self, env): "--with-png=no", "--with-harfbuzz=no", "--enable-static", "--disable-shared" ] - host = sysconfig.get_config_var('BUILD_GNU_TYPE') + host = sysconfig.get_config_var('HOST_GNU_TYPE') if host is not None: # May be unset on PyPy. configure.append(f"--host={host}") subprocess.check_call(configure, env=env, cwd=src_path)