From 3cb0c6e39e52df0b965fd4f7639a5af2e251dbcf Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Apr 2015 23:31:48 +0000 Subject: [PATCH] rbinstall.rb: destdir * tool/rbinstall.rb (gem): use installed ruby under destdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 1ce2983493..3102b927f2 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -775,7 +775,7 @@ install?(:ext, :comm, :gem) do end next if gems.empty? if defined?(Zlib) - ENV['DESTDIR'] = $destdir if $destdir + Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name))) gems.each do |gem| Gem.install(gem, Gem::Requirement.default, options) gemname = File.basename(gem)