[issue14527] How to link with a non-system libffi?
Rupert Nash
report at bugs.python.org
Wed May 27 10:43:24 EDT 2020
Rupert Nash <r.nash at epcc.ed.ac.uk> added the comment:
I have just struggled with building CPython with the _ctypes module. Fundamentally, the problem appears to be that configure uses pkgconfig to find the libffi include directory, while setup.py's detect_ctypes only uses the global list of library directories.
I have made an attempt at fixing this by having configure produce the directory containing libffi (`LIBFFI_LIBDIR`) and setup.py use this. However I've hardly any experience with autotools, so I would be very happy to be corrected if this is no use at all.
The PR is https://github.com/python/cpython/pull/20451
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14527>
_______________________________________
More information about the Python-bugs-list
mailing list