diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2020-11-22 05:14:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 05:14:25 (GMT) |
commit | 404a719b5127602c1a948f8e189ab61cd3f147d8 (patch) | |
tree | 3c5c46adc53527468927ef6e5cdb43e84a6d6432 /Lib/distutils | |
parent | 453bc1da2023d6cbe362637a2e0b06d0521f013c (diff) | |
download | cpython-404a719b5127602c1a948f8e189ab61cd3f147d8.zip cpython-404a719b5127602c1a948f8e189ab61cd3f147d8.tar.gz cpython-404a719b5127602c1a948f8e189ab61cd3f147d8.tar.bz2 |
bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301)
On macOS system provided libraries are in a shared library cache
and not at their usual location. This PR teaches distutils to search
in the SDK, even if there was no "-sysroot" argument in
the compiler flags.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 4d7a6de..f0792de 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -290,7 +290,7 @@ class UnixCCompiler(CCompiler): cflags = sysconfig.get_config_var('CFLAGS') m = re.search(r'-isysroot\s*(\S+)', cflags) if m is None: - sysroot = '/' + sysroot = _osx_support._default_sysroot(sysconfig.get_config_var('CC')) else: sysroot = m.group(1) |