1 diff -ru Python-2.5.2-orig/Lib/ctypes/util.py Python-2.5.2/Lib/ctypes/util.py
2 --- Python-2.5.2-orig/Lib/ctypes/util.py 2007-09-14 16:05:26.000000000 -0400
3 +++ Python-2.5.2/Lib/ctypes/util.py 2008-09-24 17:30:06.000000000 -0400
7 cmd = "objdump -p -j .dynamic 2>/dev/null " + f
8 - res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read())
10 + res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read())
15 + return os.path.basename(f) # This is good for GLibc, I think,
16 + # and a dep on binutils is big (for
20 if (sys.platform.startswith("freebsd")