[egenix-users] Help on building python-egenix-mx-base

M.-A. Lemburg mal at egenix.com
Mon Jan 5 20:33:16 CET 2009


On 2008-12-27 06:21, Funda Wang wrote:
> 2008/12/26 M.-A. Lemburg <mal at egenix.com>:
>> Hello,
>>
>> I'm not sure I understand: distutils gets its LDFLAGS from the
>> Python installation when compiling and linking Python extensions
>> and uses the same flags as those used for the installation
>> of Python itself.
>>
>> Is the libdl needed for the new mx.Tools.dlopen() API ?
> Yes, if you use dlopen, then -ldl is requried. And the same for floor
> implies -lm.

Right, but the Python binary itself usually already links to these (at
least on the platforms we're using).

Anyway, making them explicit is better, so we'll add a patch to the
next release.

Thanks for bringing this up.

>> On 2008-12-26 03:06, Funda Wang wrote:
>>> Hello,
>>>
>>> I'm currently building python-egenix-mx-base in Mandriva Linux, where
>>> its LDFLAGS defaults to " -Wl,--as-needed -Wl,--no-undefined
>>> -Wl,-z,relro".
>>>
>>> Maybe you could merge this patch regarding linking against libm and libdl:
>>> http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-egenix-mx-base/current/SOURCES/egenix-mx-base-fix_underlinking.diff
>> --
>> Marc-Andre Lemburg
>> eGenix.com
>>
>> Professional Python Services directly from the Source  (#1, Dec 26 2008)
>>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>> ________________________________________________________________________
>> 2008-12-02: Released mxODBC.Connect 1.0.0      http://python.egenix.com/
>>
>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>
>>
>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>               http://www.egenix.com/company/contact/
>>
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> https://www.egenix.com/mailman/listinfo/egenix-users

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jan 05 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/



More information about the egenix-users mailing list