This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rsanchezsaez
Recipients khinsen, naufraghi, ronaldoussoren, rsanchezsaez, tarek
Date 2009-12-15.17:35:11
SpamBayes Score 0.001865326
Marked as misclassified No
Message-id <1260898514.11.0.11959216535.issue3588@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-12-15 17:35:14rsanchezsaezsetrecipients: + rsanchezsaez, ronaldoussoren, tarek, naufraghi, khinsen
2009-12-15 17:35:14rsanchezsaezsetmessageid: <1260898514.11.0.11959216535.issue3588@psf.upfronthosting.co.za>
2009-12-15 17:35:12rsanchezsaezlinkissue3588 messages
2009-12-15 17:35:12rsanchezsaezcreate