summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-18 08:41:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-18 08:41:02 +0000
commitc7c7dfd2fcbb7305d28cdff5d1ac44f4ad9c4fe3 (patch)
treed0722e9248c3376780b01950519d486262351531 /ext/extmk.rb
parent5c56769118deac7f79030a87bb272bd82aeba2e4 (diff)
ext/extmk.rb: link archives only
* ext/extmk.rb (extmake): link archives only, skip script only extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index a498268114..45c0afd423 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -234,7 +234,7 @@ def extmake(target)
unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
args += [sysquote("DESTDIR=" + relative_from($destdir, "../"+prefix))]
end
- if $static and %r(\A-test-) !~ target and ok
+ if $static and ok and !$objs.empty? and !File.fnmatch?("-*", target)
args += ["static"] unless $clean
$extlist.push [$static, target, $target, $preload]
end