From 232eded0cc2fbf2873594e9e47772203428d2724 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 9 Sep 2022 16:07:48 -0600 Subject: [PATCH] Fix cross-compiling our freetype Instead of passing BUILD_GNU_TYPE as the host, it should be HOST_GNU_TYPE. This fixes cross-compilation for osx_arm64 on conda-forge. --- setupext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)