On Wed, Nov 21, 2012 at 10:59 PM, Juan Jose Garcia-Ripoll <email@example.com> wrote:
2) Ensuring DFFI is not used.I've been struggling with trying to use cffi based libraries with ECL on iOS which doesn't allow dlopening dynamic libraries (so ECL has to be compiled with --disable-shared).Hmm, is it really that difficult? CFFI is quite an uncomfortable beast to work with, since it definitely assumes that libraries have to be loaded, etc, but it could be easily fixed to work with statically linked libraries by1) Intercepting the library loading functionsIf you do 1) and 2), then CFFI will work with statically linked libraries. Would this help you somehow?
Note: I am not rejecting your ltdl patches. I would just need to know whether they solve problem or whether there are better approaches. It would also be interesting to have the patch without including ltdl in the package (only libraries which are needed for Windows's MSVC are included in ECL).
libltdl supports currently the following dynamic linking mechanisms:
dlopen(POSIX compliant systems, GNU/Linux, etc.)
LoadLibrary(Win16 and Win32)
NSLinkModule(Darwin and Mac OS X)
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)