I have released a new gem - ffi-compiler (https://github.com/ffi/ffi-compiler) - to help people who need to need to write custom C code (e.g. for C++ shims), but don't want to get bogged down with figuring out how to compile that into a shared library and have everything install & load correctly when their gem is installed.