I tried to outsmart Ruby, but he is smarter than me. mkmf.rb gets confused by CROSS_COMPILING definition. Thanks goes to Aman Gupta for the debug. Closes GH-28
…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.