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:
parent
e4cde46942
commit
7cd7cfae77
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue