This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: thirdparty extensions, --enable-shared, static linking
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, loewis, marienz
Priority: normal Keywords:

Created on 2007-02-08 17:16 by marienz, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg31212 - (view) Author: Marien Zwart (marienz) * Date: 2007-02-08 17:16
(I'm filing this under the "Build" category which may not be entirely accurate, but couldn't find a closer match. Is there a description of what the categories mean somewhere?).

Python 2.5 built with --enable-shared on linux produces a shared libpython2.5.so in the "normal" libdir and only a static libpython2.5.a in /usr/lib/python2.5/config. Normally when you build extensions you want them to link to the dynamic one. However python-config --ldflags has -L/usr/lib/python2.5/config in its output, causing build processes using it to prefer the static library over the dynamic one.

This is somewhat similar to bug 1600860: distutils does the same thing when compiling extensions in an --enable-shared python 2.5.

I think either python-config should be modified to not mention that "config" dir on an --enable-shared build or the build process should be modified to put a .so file next to the .a file in that directory.
msg31213 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-02-09 12:46
The categories aren't described anywhere.

python-config should describe the installed code; we shouldn't change what gets installed how for 2.5.1.

Georg, with python-config being your code, can you take a look? If not, please unassign (in which case I'd ask marienz whether he would like to contribute a patch).
msg31214 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-31 18:58
Fixed in rev. 54634, 54636.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44561
2007-02-08 17:16:04marienzcreate