[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

Ricardo Sánchez-Sáez report at bugs.python.org
Tue Dec 15 18:35:14 CET 2009


Ricardo Sánchez-Sáez <agentriot at gmail.com> added the comment:

I am using it to tell CMake where are the Python Libraries for linking.

Here's a snippet from my FindPythonLibs.cmake (I am attaching the whole
file as well):

...
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import
distutils.sysconfig\nprint
distutils.sysconfig.get_config_var('LINKFORSHARED')"
        OUTPUT_VARIABLE PYTHON_LDFLAGS_OUTPUT_VARIABLE
        ERROR_VARIABLE PYTHON_LDFLAGS_ERROR_VARIABLE
        RESULT_VARIABLE PYTHON_LDFLAGS_RETURN_VALUE
        )
...

Does anybody happen to know a better/more correct way for linking the
python libs?

----------
Added file: http://bugs.python.org/file15567/FindPythonLibs.cmake

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


More information about the Python-bugs-list mailing list