summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 14:26:44 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 14:26:44 +0000
commitd266473283e5275497ede28d3bc6b238010f37ec (patch)
treec469c90897154a9f27573755c6980da85620e782 /tool
parent42e149c9ad5297b2cb507bfe56318fcae432cf55 (diff)
* tool/rbinstall.rb: support destdir for native extention gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index cec3b57f5c..1ce2983493 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -775,6 +775,7 @@ install?(:ext, :comm, :gem) do
end
next if gems.empty?
if defined?(Zlib)
+ ENV['DESTDIR'] = $destdir if $destdir
gems.each do |gem|
Gem.install(gem, Gem::Requirement.default, options)
gemname = File.basename(gem)