This should be more efficient, as it doesn't need to call ldconfig,
gcc, objdump or ld to determine its existence.
ctypes.CDDL() will use dlopen() directly.
Note that we're hard-coding the current version (libc.so.7).
This will need changing when FreeBSD changes their ABI.
At that point we might have to rethink our strategy, or fix
ctypes.util.find_library() to be less awful.
Until then, this should give us a minimal performance boost.
This should be more efficient, as it doesn't need to call
ldconfig
,gcc
,objdump
orld
to determine its existence.ctypes.CDDL()
will usedlopen()
directly.Note that we're hard-coding the current version (
libc.so.7
). This will need changing when FreeBSD changes their ABI.At that point we might have to rethink our strategy, or fix
ctypes.util.find_library()
to be less awful. Until then, this should give us a minimal performance boost.