summaryrefslogtreecommitdiffstats
path: root/Lib/test/pythoninfo.py
diff options
context:
space:
mode:
authorstratakis <cstratak@redhat.com>2018-12-19 17:19:01 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-12-19 17:19:01 (GMT)
commitcf10a750f4b50b6775719cfb17bee00bc3a9c60b (patch)
treeb01cd3a429404cf2a2d58d8cfb35676c8969f5f6 /Lib/test/pythoninfo.py
parent55cc34500e5abbfedb89adc95e3f94d53c544933 (diff)
downloadcpython-cf10a750f4b50b6775719cfb17bee00bc3a9c60b.zip
cpython-cf10a750f4b50b6775719cfb17bee00bc3a9c60b.tar.gz
cpython-cf10a750f4b50b6775719cfb17bee00bc3a9c60b.tar.bz2
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900)
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.
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r--Lib/test/pythoninfo.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index 81fca10..26bcf5f 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -411,7 +411,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',