compiling 3.7.0 from source with custom libffi path
On 2018-09-24 14:14, Fetchinson . via Python-list wrote:
>>> I'm trying to compile python 3.7.0 from source with a custom libffi
>>> path and the compiler/linker doesn't seem to pick up the right
>>> version. The system libffi doesn't have the development files so I've
>>> installed the latest libffi (also from source) to /opt/custom but
>>> still I get
>>> INFO: Could not locate ffi libs and/or headers
>> Apparently the configure script uses pkg-config to locate libffi. You
>> should be able to get it to find your libffi by setting PKG_CONFIG_PATH
>> appropriately (probably to "/opt/custom/lib/pkgconfig" ?)
>> : https://github.com/python/cpython/blob/v3.7.0/configure.ac#L2936
> Thanks, tried it, but still no luck, exact same error message.
Is there a .pc file for libffi? Can you run pkg-config manually, to
check if it works, and finds libffi in your environment?
>>> Failed to build these modules:
>>> Although I compile python with --prefix=/opt/custom because that's the
>>> location I'd like to install it too. So how do I tell the build system
>>> where to find my custom libffi?