mirror of
https://github.com/python/cpython.git
synced 2026-04-22 20:01:13 +00:00
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.
(cherry picked from commit cf10a750f4)
This commit is contained in:
parent
371ca0bb8f
commit
f14087a4a9
8 changed files with 38 additions and 18 deletions
|
|
@ -407,7 +407,10 @@ def collect_sysconfig(info_add):
|
|||
'OPT',
|
||||
'PY_CFLAGS',
|
||||
'PY_CFLAGS_NODIST',
|
||||
'PY_CORE_LDFLAGS',
|
||||
'PY_LDFLAGS',
|
||||
'PY_LDFLAGS_NODIST',
|
||||
'PY_STDMODULE_CFLAGS',
|
||||
'Py_DEBUG',
|
||||
'Py_ENABLE_SHARED',
|
||||
'SHELL',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue