Attached patch introduces option LLVM_ENABLE_FFI. If enabled, CMake will search for libffi and it's headers and link it with lib/ExecutionEngine/Interpreter.<br>I've built LLVM/Clang with this patch on FreeBSD and Ubuntu Linux.<br>