…GH-3 This is useful to indicate a custom requirement message, like DLLs installation or similar. Rake::ExtensionTask.new('my_extension', GEM_SPEC) do |ext| ext.cross_compile = true ext.cross_compiling do |gem_spec| gem_spec.post_install_message = "You've installed a binary version of this gem" end end
Please read History entry about usage of RUBY_CC_VERSION.
Be warned: works from 1.8 to 1.9, but not if your default ruby is 1.9. There are some issues inside mkmf.rb that limits this, needs further investigation.
Exposed also 'update-config' task for rake-compiler so migration to new syntax is possible.
RubyGems Specification class lack a mechanism to clone the instances. I've assumed that worked properly but my assumption was wrong. This solves the issues exposed in DataMapper LH Ticket #757 when building native gems using 'rake native gem'
OSX .bundle vs Linux/Windows .so is not funny.