Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 26, 2018

Fix Modules/makesetup script for shared libraries. When Modules/Setup
is modified to compile C extensions as shared libraries using
Makefile, make sure that the generated shared library is linked to
libpython3.X.

Add also a dependency on the Makefile target to libpython, to make
sure that the parallel compilation works as expected.

https://bugs.python.org/issue34814

Fix Modules/makesetup script for shared libraries. When Modules/Setup
is modified to compile C extensions as shared libraries using
Makefile, make sure that the generated shared library is linked to
libpython3.X.

Add also a dependency on the Makefile target to libpython, to make
sure that the parallel compilation works as expected.
@pitrou
Copy link
Member

pitrou commented Sep 26, 2018

I think the opposite should be done (never link with libpython.so). See https://bugs.python.org/issue21536 for additional context and discussion ("extension built with a shared python cannot be loaded with a static python").

@vstinner
Copy link
Member Author

I closed https://bugs.python.org/issue34814 as "not a bug", so I close this PR as well.

@vstinner vstinner closed this Apr 16, 2019
@vstinner vstinner deleted the makesetup branch April 16, 2019 15:39
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