[New-bugs-announce] [issue9998] find_library should search LD_LIBRARY_PATH on linux

Jonathan Niehof report at bugs.python.org
Thu Sep 30 16:45:10 CEST 2010

New submission from Jonathan Niehof <jniehof at lanl.gov>:

It's come up on occasion (#2936, http://osdir.com/ml/python.ctypes/2008-05/msg00046.html) that ctypes find_library doesn't search LD_LIBRARY_PATH for libraries, which is different behaviour from the runtime linker. The attached patch adds this search.

Unfortunately I can't conceive of a reasonable unit test for this (compiling a shared library in setUp seems a bit overkill.)

assignee: theller
components: ctypes
files: ctypes_ld_lib_path.patch
keywords: patch
messages: 117738
nosy: jniehof, theller
priority: normal
severity: normal
status: open
title: find_library should search LD_LIBRARY_PATH on linux
type: feature request
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19068/ctypes_ld_lib_path.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list