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: fix broken BLDSHARED - needs LDFLAGS too (GH-11297) #11298

Merged
merged 1 commit into from
Dec 23, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 23, 2018

BLDSHARED needs to have both LDFLAGS and LDFLAGS_NODIST, not just LDFLAGS_NODIST; PY_CORE_LDFLAGS provides both. For example, as it stands now with just LDFLAGS_NODIST, macOS universal builds are broken as the necessary -arch flags are no longer passed to the standard library extension module link step from setup.py resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee0)

Co-authored-by: Ned Deily nad@python.org

https://bugs.python.org/issue35257

`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee0)

Co-authored-by: Ned Deily <nad@python.org>
@miss-islington
Copy link
Contributor Author

@ned-deily: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 3d4b4b8 into python:3.7 Dec 23, 2018
@miss-islington miss-islington deleted the backport-44a3ee0-3.7 branch December 23, 2018 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants