summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 23:31:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 23:31:48 +0000
commit3cb0c6e39e52df0b965fd4f7639a5af2e251dbcf (patch)
tree098ff53612f29afb67ceaba9ea28adb1850797f1 /tool
parentdf7aac7c8dd82f0ff775f1e1067cca10b118945a (diff)
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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 1ce2983..3102b92 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)