Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.7] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) #11264

Merged
merged 1 commit into from
Dec 20, 2018
Merged

[3.7] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) #11264

merged 1 commit into from
Dec 20, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 20, 2018

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)

https://bugs.python.org/issue35257

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)
@vstinner
Copy link
Member Author

I tested manually the PR and it works as expected:
https://bugs.python.org/issue35257#msg332232

@vstinner vstinner merged commit 0198f52 into python:3.7 Dec 20, 2018
@vstinner vstinner deleted the ldflags_nodist branch December 20, 2018 15:03
ned-deily pushed a commit to ned-deily/cpython that referenced this pull request Dec 23, 2018
) (pythonGH-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 cf10a75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants