[3.6] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) - #11265
Conversation
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 cf10a75)
|
cc @stratakis |
|
Why did you combine the PRs from two separate issues into one? It would make things much easier to track if you kept them separate, no? |
The first commit isn't important, it's a minor change. But the second commit depends on the first commit. Otherwise, I would get even more conflicts on the backport. So I decided to combine both commits. |
|
Please separate them. I spent a couple of hours earlier trying to decipher and document the tangled mess of the several bpo issues and PRs involved in this sequence over the various branches. Combining these just makes the mess more complicated. |
|
I created PR #11267 for the first change. |

https://bugs.python.org/issue35257