diff options
author | Michael Felt <aixtools@users.noreply.github.com> | 2017-12-19 12:58:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-12-19 12:58:49 (GMT) |
commit | c5ae169e1b73315672770517bf51cf8464286c76 (patch) | |
tree | 799e3be3da572d073580c444ff877bff8f1efd18 /Misc | |
parent | 319c0345cdd8fddb49d235462e71883f1dd51b99 (diff) | |
download | cpython-c5ae169e1b73315672770517bf51cf8464286c76.zip cpython-c5ae169e1b73315672770517bf51cf8464286c76.tar.gz cpython-c5ae169e1b73315672770517bf51cf8464286c76.tar.bz2 |
bpo-26439 Fix ctypes.util.find_library failure on AIX (#4507)
Implement find_library() support in ctypes/util for AIX.
Add some AIX specific tests.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-11-24-08-35-43.bpo-26439.IC45_f.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-11-24-08-35-43.bpo-26439.IC45_f.rst b/Misc/NEWS.d/next/Library/2017-11-24-08-35-43.bpo-26439.IC45_f.rst new file mode 100644 index 0000000..91c9a45 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-11-24-08-35-43.bpo-26439.IC45_f.rst @@ -0,0 +1,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) |