summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2017-11-24-08-35-43.bpo-26439.IC45_f.rst
blob: 91c9a45b503a8bc0e62fc70fee697bb555a14dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Fix ctypes.util.find_library() for AIX
by implementing ctypes._aix.find_library()
Patch by: Michael Felt aka aixtools

ctypes.util.find_library has always returned None on a standard AIX.
With this patch there is support for both AIX and svr4 shared libraries.
None is returned only when there is nothinbg found. Normal behavior is now:
on AIX find_library("FOO") returns either libFOO.a(libFOO.so) or libFOO.so
while legacy names e.g., find_library("c") returns libc.a(shr.o)
or libc.a(shr_64.o) - depending on 32 or 64-bit operations.
Include RTLD_MEMBER to mode to support AIX legacy library(member) names
(Modules/_ctype/posixmodule.c), ctypes/__init__.py and configure.ac)