[Distutils] Solaris and distutils: Need to pass LIBDIR explicitly with -L when building extensions?

Dave Peterson dpeterson at enthought.com
Mon Feb 2 19:29:50 CET 2009

Tarek Ziade wrote:
> 2009/1/31 Floris Bruynooghe <floris.bruynooghe at gmail.com>:
>>> I'm leaning more and more toward this is actually a bug
>>> with the distutils source on Solaris.
>> Yes, I agree now that it is a bug in distutils and I agree with your
>> fix.  The if statement should check both that it is SunOS and that it
>> is using a shared python, just like the linux one.  If fact the linux
>> one could just be modified:
>> if (sys.paltform.startswith('linux') \
>>    or sys.platform.startswith('gnu') \
>>    or sys.platform.startswith('sunos')) \
>>        and sysconfig.get_config_var('Py_ENABLE_SHARED'):
>>    ...
>> I'll leave the honours of reporting the bug to you if you agree with
>> this.
> Yes thanks to report this, I'll apply your fix,
> Regards
> Tarek

Hi Tarek,

It isn't clear to me if you fixed it already or were waiting for my 
patch, but I just added issue 5132 to the Python issue tracker to 
document the issue and provide a patch file.

-- Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090202/5172c985/attachment.htm>

More information about the Distutils-SIG mailing list