bpo-36508: python-config don't export LINKFORSHARED#12661
bpo-36508: python-config don't export LINKFORSHARED#12661vstinner merged 2 commits intopython:masterfrom vstinner:linkforshared
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 <vstinner@redhat.com>
|
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 <vstinner@redhat.com>
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