Created
August 8, 2010 21:43
-
-
Save luislavena/514593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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