# HG changeset patch # Parent 8a0ed9f63c6e339cef6ca74ba31cc73400e122de Issue #18164: Clarify the embedding docs regarding link options. diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -307,11 +307,13 @@ 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_vars('LIBS') + ['-lpthread -ldl -lutil'] >>> sysconfig.get_config_var('LINKFORSHARED') '-Xlinker -export-dynamic'