When I read the documentation of DEFINE-FOREIGN-LIBRARY at
I don't see any way of defining a library and associating a full path.
It really seems (and correct me if I'm wrong) that you can only specify paths in the case "if not found in system-global directories." But exactly what that means is not immediately clear. I assume it means that in all cases dload() will be called first, passing the library name, and if that fails, then cffi will attempt to find it elsewhere.
What I'd like to do is circumvent dload() from being called because I know it will load the wrong file (wrong version).
Am I reading the documentation wrong? Is there really a way to load the dylib from a specified directory and associate it with the lisp symbol for cffi's db?