summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-06-24 14:23:35 -0700
committerNed Deily <nad@acm.org>2013-06-24 14:23:35 -0700
commit10503aef473cc45ad074a57f858bd41da7cfef52 (patch)
tree8e49b7b9dd1d2464893a237b44c61fd8ea9a2497 /Doc
parent520b8cbffe53b7c3fcc66a9afe86ec80c63dcbfe (diff)
parent0d47afd7e861de6f8701be27da4b04922d599447 (diff)
downloadcpython-10503aef473cc45ad074a57f858bd41da7cfef52.tar.gz
Issue #18164: merge from 3.3
Diffstat (limited to 'Doc')
-rw-r--r--Doc/extending/embedding.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst
index 3754380af8..6cb686ab09 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'