Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created August 8, 2010 21:43
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 luislavena/514593 to your computer and use it in GitHub Desktop.
Save luislavena/514593 to your computer and use it in GitHub Desktop.
diff --git a/recipes/interpreter/ruby19.rake b/recipes/interpreter/ruby19.rake
index 755f644..9c68aac 100644
--- a/recipes/interpreter/ruby19.rake
+++ b/recipes/interpreter/ruby19.rake
@@ -73,9 +73,11 @@ namespace(:interpreter) do
task :configure => [package.build_target, :compiler, *package.dependencies] do
source_path = Pathname.new(File.expand_path(package.target))
build_path = Pathname.new(File.expand_path(package.build_target))
-
relative_path = source_path.relative_path_from(build_path)
+ # use RubyGems ruby definition as baseruby
+ ruby_impl = Gem.ruby
+
# working with a checkout, generate configure
unless File.exist?(File.join(package.target, 'configure'))
cd package.target do
@@ -84,7 +86,7 @@ namespace(:interpreter) do
end
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}\" --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