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

extmk.rb: fix for static-linked-ext

* ext/extmk.rb (extmake): fix up r57424 for static-linked-ext.
  separate maybestatic argument from basedir which is given always
  now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-01-27 08:05:06 +00:00
parent dbacbc440f
commit 3d5facc48f

View file

@ -130,7 +130,7 @@ def extract_makefile(makefile, keep = true)
true
end
def extmake(target, basedir = (maybestatic = 'ext'))
def extmake(target, basedir = 'ext', maybestatic = true)
unless $configure_only || verbose?
print "#{$message} #{target}\n"
$stdout.flush
@ -590,7 +590,7 @@ exts.each do |d|
$static = $force_static ? true : $static_ext[d]
if $ignore or !$nodynamic or $static
result = extmake(d, ext_prefix) or abort
result = extmake(d, ext_prefix, !@gemname) or abort
extso |= $extso
fails << result unless result == true
end