diff options
Diffstat (limited to 'lib/rubygems/ext')
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 2977cf0207..3df7637581 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -31,6 +31,9 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder run cmd, results + destdir = ENV["DESTDIR"] + ENV["DESTDIR"] = nil + make dest_path, results if tmp_dest @@ -43,6 +46,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder results ensure ENV["RUBYOPT"] = rubyopt + ENV["DESTDIR"] = destdir siteconf.close(true) if siteconf FileUtils.rm_rf tmp_dest if tmp_dest end |