Skip to content

Instantly share code, notes, and snippets.

@segfault
Forked from tenderlove/cross_compile.rdoc
Created December 9, 2009 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save segfault/252283 to your computer and use it in GitHub Desktop.
Save segfault/252283 to your computer and use it in GitHub Desktop.

Cross compile instructions:

$ rake-compiler cross-ruby VERSION=1.8.6-p383
$ rake-compiler cross-ruby VERSION=1.9.1-p243
$ rake cross compile RUBY_CC_VERSION=1.8.6:1.9.1
$ rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1

Then you should have the cross compiling gem under pkg. You can check that the gem has the correct .so, .dll, and the windows nokogiri/nokogiri.rb stub by doing:

$ gem spec pkg/nokogiri-1.4.0-x86-mingw32.gem files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment