1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mkmf.rb: workaround for tmpdir

* lib/mkmf.rb (try_link0): workaround for miniruby as 'tmpdir.rb'
  always requires 'etc.so' now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-04-25 07:11:03 +00:00
parent e4cde46942
commit 7cd7cfae77

View file

@ -528,6 +528,11 @@ MSG
def try_link0(src, opt="", *opts, &b) # :nodoc:
cmd = link_command("", opt)
if $universal
begin
require 'etc'
rescue LoadError
$" << 'etc.so'
end
require 'tmpdir'
Dir.mktmpdir("mkmf_", oldtmpdir = ENV["TMPDIR"]) do |tmpdir|
begin