#39357: python27 2.7.5 has bad LINKFORSHARED sysconfig -----------------------+-------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: python27 -----------------------+-------------------------------- After doing a port upgrade and getting the latest python27 port autoconf is now breaking on python tests. This is caused by autoconf picking up the linker options from python itself: {{{
import distutils.sysconfig distutils.sysconfig.get_config_var('LINKFORSHARED') '-u _PyMac_Error Python.framework/Versions/2.7/Python' }}}
Which shows an incomplete path is used, which causes the autoconf test to fail like this: {{{ clang -o conftest -g -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 conftest.c -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python -ldl -framework CoreFoundation clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' }}} -- Ticket URL: <https://trac.macports.org/ticket/39357> MacPorts <http://www.macports.org/> Ports system for OS X