Hi --
I've just found that fink's python 2.5 and python 2.6 are built with
different values of LDSHARED, and this is (probably) what's
preventing my python extension from building properly under 2.6.
LDSHARED contains linker arguments, and when building an extension,
the value of LDSHARED used to build python is automatically used for
the extension. But fink's 2.5 and 2.6 use different values:
% /sw/bin/python2.5 -c 'from distutils import sysconfig; print
sysconfig.get_config_var("LDSHARED")'
gcc -L/sw/lib -bundle -undefined dynamic_lookup
% /sw/bin/python2.6 -c 'from distutils import sysconfig; print
sysconfig.get_config_var("LDSHARED")'
gcc -L/sw/lib -bundle -L/sw/lib/python2.6/config -lpython2.6
"-undefined dynamic_lookup" is missing from 2.6, and this prevents an
extension that uses multiple .dylibs from building.
Am I right, or am I missing something here? Can I work around this
without building python 2.6 manually? Is there a solution that will
be easy for our users to implement? We distribute source code and a
setup.py file.
Thanks.
-- Steve
--
-- [email protected] Tel: (301) 975-5423 --
-- http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301) 975-3553 --
-- NIST, 100 Bureau Drive, Stop 8910, Gaithersburg, Md 20899-8910 --
-- "I don't think this will work. That's why it's science." --
-- Naomi Langer (age 6), 17 Feb 2003 --
------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users