Permalink
Browse files

Move DESTDIR changes alongside RUBYOPT

  • Loading branch information...
1 parent 3ac6297 commit 3a7934d43f9e525411b5c55919e5cf09d847d7a1 @drbrain drbrain committed Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubygems/ext/ext_conf_builder.rb
@@ -26,14 +26,14 @@ def self.build(extension, directory, dest_path, results)
siteconf.flush
rubyopt = ENV["RUBYOPT"]
+ destdir = ENV["DESTDIR"]
begin
ENV["RUBYOPT"] = ["-r#{siteconf.path}", rubyopt].compact.join(' ')
cmd = [Gem.ruby, File.basename(extension), *Gem::Command.build_args].join ' '
run cmd, results
- destdir = ENV["DESTDIR"]
ENV["DESTDIR"] = nil
make dest_path, results

0 comments on commit 3a7934d

Please sign in to comment.