[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-10 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Works for me. Thanks Ronald. Closing... -- assignee: - ronaldoussoren status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4472

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: LDLIBRARY is indeed a good variable to use. I've applied issue447-v2.patch in r68146. Backported to 2.6.x in r68147. Added file: http://bugs.python.org/file12535/issue4472-v2.patch ___ Python

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-02 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- resolution: accepted - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4472 ___

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-02 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Ronald, cygwin is a special case too. LDLIBRARY is so called import library ! So the make target can be (as I propose in py-issue-4472-makefile.patch) + if test -n $(DLLLIBRARY); then \ +

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've applied this patch. If I understand things correctly that should fix the cygwin issue. Index: Makefile.pre.in === --- Makefile.pre.in (revision 68149) +++

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-02 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: 10x cygwin is now not impacted. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4472 ___ ___

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-01 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: I just finish test for altbininstall make target on linux and cygwin. Ronald, About the SO issue - in makefile we may use $(LDLIBRARY) instead of libpython$(VERSION)$(SO) (see py-issue-4472-makefile.patch). For cygwin

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-31 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: The patch seemed to work for me. Should I worry that I don't see -fPIC or -fpic in the compile commands? Also, running make test before at least installing libpython2.7.dylib appears to be impossible: % otool -L python.exe python.exe:

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-31 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Skip: * GCC always generates position-independent code on OSX * I'll look in the test issue, that's probably caused by a broken definition for RUNSHARED. Roumen: * The SHLIB_EXT definition in pyconfig.h is an issue. And I have to

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-30 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- title: Is shared lib building broken on trunk? - Is shared lib building broken on trunk for Mac OS X? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4472

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: SO=.dylib is needed in the makefile to ensure that make install works and to ensure that the libpython shared library is build with the right suffix (OSX uses .dylib for shared libraries). The code in distutils.sysconfig is necessary

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-30 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Ronald, In proposed patch we see (insert about line 740): + LDLIBRARY='libpython$(VERSION).dylib' + BLDLIBRARY='-L. -lpython$(VERSION)' + RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' Let see comment in

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-30 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: A --enable-framework and --enable-shared are mutable exclusive. You either have a regular unix build or a Python.framework. May be configure has to block user if both are enabled. Is there any documentation on what the role of the