diff -r a092030f1f9e Lib/ctypes/util.py --- a/Lib/ctypes/util.py Sat Jan 16 12:41:03 2016 -0800 +++ b/Lib/ctypes/util.py Wed Feb 03 11:35:43 2016 +0100 @@ -211,18 +211,10 @@ machine = os.uname().machine + '-32' else: machine = os.uname().machine + '-64' - mach_map = { - 'x86_64-64': 'libc6,x86-64', - 'ppc64-64': 'libc6,64bit', - 'sparc64-64': 'libc6,64bit', - 's390x-64': 'libc6,64bit', - 'ia64-64': 'libc6,IA-64', - } - abi_type = mach_map.get(machine, 'libc6') # XXX assuming GLIBC's ldconfig (with option -p) regex = os.fsencode( - '\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)) + '([^\s]+lib%s\.[^\s]+)' % (re.escape(name))) try: with subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=subprocess.DEVNULL,