Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57b749f

Browse files
committed
Fix compiler configuration priority for FreeType build
The CC/CFLAGS/etc flags from the Python config should be our default, but we should always listen to an existing CC set in the environment. Fixes conda-forge/matplotlib-feedstock#312 (comment)
1 parent 33d3170 commit 57b749f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,13 @@ def do_custom_build(self, env):
609609
print(f"Building freetype in {src_path}")
610610
if sys.platform != 'win32': # compilation on non-windows
611611
env = {
612-
**env,
613612
**{
614613
var: value
615614
for var, value in sysconfig.get_config_vars().items()
616615
if var in {"CC", "CFLAGS", "CXX", "CXXFLAGS", "LD",
617616
"LDFLAGS"}
618617
},
618+
**env,
619619
}
620620
env["CFLAGS"] = env.get("CFLAGS", "") + " -fPIC"
621621
configure = [

0 commit comments

Comments
 (0)