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

Ronald Oussoren report at bugs.python.org
Wed Mar 16 17:16:06 CET 2011


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

The attached patch fixes the issue by moveing LDFLAGS after BLDLIBRARY in the linking step.

I'm not committing this yet though as this will affect all platforms that use Makefiles to build, and I'm not sure if this change save for all compilers we effectively support.

Fixing this completely for OSX will require another change as well: we'd have to add "-Wl,-search_paths_first" to ensure that the build will pick up the first libpython on the search path, otherwise we'd still have a problem if you try to build a staticly linked binary (as this would still cause the linker to find macports if the additional flag isn't used).

----------
keywords: +needs review, patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file21243/issue-11445.txt

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


More information about the Python-bugs-list mailing list