Permalink
Browse files

Import r39592 from trunk

clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
  • Loading branch information...
1 parent 63f76e0 commit 3ac6297d421baad0873aaf471c624297be06875b @drbrain drbrain committed Mar 5, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rubygems/ext/ext_conf_builder.rb
@@ -33,6 +33,9 @@ def self.build(extension, directory, dest_path, results)
run cmd, results
+ destdir = ENV["DESTDIR"]
+ ENV["DESTDIR"] = nil
+
make dest_path, results
if tmp_dest
@@ -45,6 +48,7 @@ def self.build(extension, directory, dest_path, results)
results
ensure
ENV["RUBYOPT"] = rubyopt
+ ENV["DESTDIR"] = destdir
end
end
ensure

0 comments on commit 3ac6297

Please sign in to comment.