How to build cffi without linking against libffi?
Hi! This is a question not an issue. I noticed that cffi wheels for Linux published on pypi.org do not link against libffi. Instead, they link against libpthread.so.0 (and both link against libc.so.6)
$ auditwheel -v show cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
...
The following external shared libraries are required by the wheel:
{
"libc.so.6": "/lib/libc.so.6",
"libpthread.so.0": "/lib/libpthread.so.0"
}
At the same time, libffi is not bundled in cffi wheels on pypi.org:
$ zipinfo -1 cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | grep '.so'
_cffi_backend.cpython-310-x86_64-linux-gnu.so
However, if I build cffi myself on my hosts, it links against libffi.so.8 or libffi.so.6 (depending on the OS):
$ auditwheel -v show cffi-1.15.1/dist/cffi-1.15.1-cp310-cp310-linux_x86_64.whl
...
The following external shared libraries are required by the wheel:
{
"libc.so.6": "/lib/libc.so.6",
"libffi.so.8": "/lib/libffi.so.8.1.0"
}
Do you know how to build cffi without linking against libffi?
Edited by Dmitrii Sutiagin