-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-36508: python-config don't export LINKFORSHARED #12661
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
Conversation
python-config --ldflags no longer includes flags of the LINKFORSHARED variable. The LINKFORSHARED variable must only be used to build executables.
According to Azure Pipelines PR, macOS build failed with:
Maybe my Makefile.pre.in change is wrong?
|
It was just an unrelated refactoring change, I reverted it. |
I tested manually, the change works as expected. Without the change (master branch), --ldflags contains -Xlinker -export-dynamic:
With the change, --ldflags doesn't contain -Xlinker -export-dynamic:
I'm not sure why python-config (shell) and python-config.py (Python) return different output for --ldflags (this behavior can be seen without my change, my change isn't related to that). Note: (with or without the change) configure and Python don't add any LDFLAGS on my Fedora 29:
python3 from Fedora 29 contains way more LDFLAGS:
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.7. |
python-config --ldflags no longer includes flags of the LINKFORSHARED variable. The LINKFORSHARED variable must only be used to build executables. (cherry picked from commit e65f01f) Co-authored-by: Victor Stinner <[email protected]>
GH-12748 is a backport of this pull request to the 3.7 branch. |
Sorry, @vstinner, I could not cleanly backport this to |
) python-config --ldflags no longer includes flags of the LINKFORSHARED variable. The LINKFORSHARED variable must only be used to build executables. (cherry picked from commit e65f01f) Co-authored-by: Victor Stinner <[email protected]>
python-config --ldflags no longer includes flags of the LINKFORSHARED
variable. The LINKFORSHARED variable must only be used to build
executables.
https://bugs.python.org/issue36508