summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-27 08:05:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-27 08:05:06 (GMT)
commit3d5facc48f9d29728006827c20c001eefce96ec1 (patch)
tree34558368a7f2820860b1359ca66fc033daf98171 /ext/extmk.rb
parentdbacbc440f083ea31c83e51d1f24322dedb3b0ee (diff)
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
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index be9adbd..8e64045 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -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