]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-142020: ctypes docs: Note that find_library relies on the programs it runs...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Dec 2025 09:56:25 +0000 (10:56 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 09:56:25 +0000 (10:56 +0100)
(cherry picked from commit e4d32a3ef9eab34225fd9320632edbce834f4033)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/library/ctypes.rst

index 9c0b246c095483c0257d595fbc241b9761ea8b7d..6038af99009d02ef42b3ff67fd024406cc8e33c0 100644 (file)
@@ -1388,6 +1388,9 @@ On Linux, :func:`~ctypes.util.find_library` tries to run external programs
 (``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library file.
 It returns the filename of the library file.
 
+Note that if the output of these programs does not correspond to the dynamic
+linker used by Python, the result of this function may be misleading.
+
 .. versionchanged:: 3.6
    On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used
    when searching for libraries, if a library cannot be found by any other means.
@@ -2132,6 +2135,8 @@ Utility functions
 
    The exact functionality is system dependent.
 
+   See :ref:`ctypes-finding-shared-libraries` for complete documentation.
+
 
 .. function:: find_msvcrt()
    :module: ctypes.util