diff options
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/extmk.rb | 2 |
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 |