From: Ned Deily Date: Mon, 24 Jun 2013 21:22:09 +0000 (-0700) Subject: Issue #18164: Clarify the embedding docs regarding link options. X-Git-Tag: v3.4.0a1~399^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51cee7d24a8927a91f8c005590583346161798b8;p=thirdparty%2FPython%2Fcpython.git Issue #18164: Clarify the embedding docs regarding link options. --- diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index c68aff88ed1b..bd66086bbbcc 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -307,11 +307,13 @@ examine Python's :file:`Makefile` (use :func:`sysconfig.get_makefile_filename` to find its location) and compilation options. In this case, the :mod:`sysconfig` module is a useful tool to programmatically extract the configuration values that you will want to -combine together: +combine together. For example: .. code-block:: python >>> import sysconfig + >>> sysconfig.get_config_var('LIBS') + '-lpthread -ldl -lutil' >>> sysconfig.get_config_var('LINKFORSHARED') '-Xlinker -export-dynamic'