Thursday, March 17, 2016

Common Lisp and CFFI on OS X can't find your MacPorts libraries?

Consider adding the following to ~/.sbclrc

#+(and asdf darwin)
(defmethod asdf:perform :after ((o asdf:load-op) (c (eql (asdf:find-system "cffi"))))
(let ((library-directories (intern "*FOREIGN-LIBRARY-DIRECTORIES*" (find-package "CFFI"))))
(set library-directories
(cons #p"/opt/local/lib/" (symbol-value library-directories)))))