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
It enables mingw-w64 usage.
Include missing files to make "gem install -t" works.
…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
- Use of #dup from RubyGems for it. - Bumped the RubyGems minimum version due this. - Defined require Ruby version too (no support for 1.8.5 folks, sorry).
(It doesn't play nice with fat binaries installation).
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.
Credit goes where credit is due. Thanks deepj for your contribution!
Started to use latest RDoc package instead of Rake one.
Exposed also 'update-config' task for rake-compiler so migration to new syntax is possible.