Title: distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared
Type: compile error Stage:
Components: Distutils Versions: Python 3.0, Python 3.1, Python 2.7, Python 2.6
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: dpeterson, tarek
Priority: normal Keywords: patch

Created on 2009-02-02 18:28 by dpeterson, last changed 2009-02-05 22:59 by tarek. This issue is now closed.

File name Uploaded Description Edit
distutils_command_build_ext.patch dpeterson, 2009-02-02 18:28 Patch to enable extensions to link on Solaris
Messages (2)
msg80977 - (view) Author: Dave Peterson (dpeterson) Date: 2009-02-02 18:28
I've had trouble building Python extensions on Solaris if the Python
install I'm using was built with the '--enable-shared' option.   In
tracking this down, it appears that the code in
'distutils/command/' contains a number of statements to
detect a similar situation for other platforms and explicitly add the
'lib' dir option for the linker, but there is no similar detection for

I've attached a patch that fixes this and solves the problem for me.  I
simply extended the checking for 'linux' and 'gnu' platforms to also
apply for 'sunos' platforms.
msg81235 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-02-05 22:59
fixed in r69316

Thanks for the patch
Date User Action Args
2009-02-05 22:59:27tareksetstatus: open -> closed
messages: + msg81235
2009-02-02 18:54:33tareksetassignee: tarek
nosy: + tarek
versions: + Python 2.6, Python 3.0, Python 3.1, Python 2.7, - Python 2.5
2009-02-02 18:28:12dpetersoncreate