[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

Ronald Oussoren report at bugs.python.org
Wed Mar 9 15:17:01 CET 2011


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

It is --enable-shared that is the culprit, but in the negated form...

The OSX linker will search the entire link path for a shared library before trying to look for a static library. As a workaround you could use '--enable-shared', and that should ensure that you get linked to the python version you're actually building as it is earlier on the path.

A proper fix is to add "-Wl,-search_paths_first" to the linker flags on OSX, with that flag the linker behaves just like the linker on any other unix platform.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11445>
_______________________________________


More information about the Python-bugs-list mailing list