I create a gem which includes C code and FFI bindings for it
(https://github.com/colinsurprenant/geokdtree). On JRuby 1.7.2 when
installing the gem it complains with
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
Native extension support is now disabled by default and the gem
install will work if I set JRUBY_OPTS with -Xcext.enabled=true.
This C code is not Ruby c-ext per se, it is “pure” C, but my gem uses
the gem “extension” support with extconf.rb/mkmf for the install time
Is there any way to have JRuby compile the included C code in my gem
without requiring users to have to set JRUBY_OPTS?