#39223: incorrect flags from distutils when linking against python27 @2.7.5_0 -----------------------+------------------- Reporter: ram@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | -----------------------+------------------- Comment (by ram@…): Replying to [comment:3 nad@…]:
LINKFORSHARED is a configuration variable used to build the Python interpreter itself in its build directory. It isn't intended to be used directly by other components. Unfortunately, Python builds export all configuration variables whether they are meaningful or not. To embed Python, the supported interface for finding build flags is to use the pythonx.y-config script:
Thanks that's interesting, the software I was trying to build uses the [http://git.savannah.gnu.org/gitweb/?p=autoconf- archive.git;a=blob;f=m4/ax_python_devel.m4 `ax_python_devel.m4`] macro from the autoconf archive but `python-config` looks like a better approach. I'll forward that to upstream. -- Ticket URL: <https://trac.macports.org/ticket/39223#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X