Skip to content

Instantly share code, notes, and snippets.

@jonforums
Created August 18, 2010 18:58
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 jonforums/535786 to your computer and use it in GitHub Desktop.
Save jonforums/535786 to your computer and use it in GitHub Desktop.
Build RubyInstaller 1.9 with JRuby patch
diff --git a/recipes/interpreter/ruby19.rake b/recipes/interpreter/ruby19.rake
index 755f644..b63d1b8 100644
--- a/recipes/interpreter/ruby19.rake
+++ b/recipes/interpreter/ruby19.rake
@@ -83,8 +83,10 @@ namespace(:interpreter) do
end
end
+ ruby_impl = Gem.ruby
+
cd package.build_target do
- sh "sh -c \"#{relative_path}/configure #{package.configure_options.join(' ')} --enable-shared --prefix=#{File.join(RubyInstaller::ROOT, package.install_target)}\""
+ sh "sh -c \"#{relative_path}/configure #{package.configure_options.join(' ')} --with-baseruby=\"#{ruby_impl}\" --enable-shared --prefix=#{File.join(RubyInstaller::ROOT, package.install_target)}\""
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment