Skip to content

Commit 4289664

Browse files
committed
ctypes docs: Note that find_library relies on the programs it runs
1 parent d4fa707 commit 4289664

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/ctypes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,9 @@ On Linux, :func:`~ctypes.util.find_library` tries to run external programs
13881388
(``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library file.
13891389
It returns the filename of the library file.
13901390

1391+
Note that if the output of these programs does not correspond to the dynamic
1392+
linker used by Python, the result of this function may be misleading.
1393+
13911394
.. versionchanged:: 3.6
13921395
On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used
13931396
when searching for libraries, if a library cannot be found by any other means.

0 commit comments

Comments
 (0)