]> granicus.if.org Git - python/commitdiff
Issue #18164: Clarify the embedding docs regarding link options.
authorNed Deily <nad@acm.org>
Mon, 24 Jun 2013 21:22:09 +0000 (14:22 -0700)
committerNed Deily <nad@acm.org>
Mon, 24 Jun 2013 21:22:09 +0000 (14:22 -0700)
Doc/extending/embedding.rst

index c68aff88ed1bb2532c8255b47a46cce117750dd9..bd66086bbbcca47f29a8cec9162ee86eb34e26a7 100644 (file)
@@ -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'