[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST
STINNER Victor
report at bugs.python.org
Fri Dec 14 13:07:58 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
There are multiple ways to configure and build Python, we should try most combinations:
* ./configure --enable-shared
* ./configure --with-lto
* ./configure --enable-optimizations
* make profile-opt
* make
* Maybe also: make install
Test:
* Build Python and make sure that python binary and C extensions (of the stdlib) are compiled with LTO
* python-config --cflags and python-config --ldflags don't leak LTO flags
* Build a C extension (Pillow) and check that there is no LTO flag in the command lines
I'm not how to test cross-compilation :-(
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35257>
_______________________________________
More information about the Python-bugs-list
mailing list