Thank you both for your answers. POSITION_INDEPENDENT_CODE=True did help but I then faced another problem of abi incompatibility. I’ve fixed the problem by compiling the library separately for each platform.
Thank you both for your answers. POSITION_INDEPENDENT_CODE=True did help but I then faced another problem of abi incompatibility. I’ve fixed the problem by compiling the library separately for each platform.