diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-21 04:46:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-21 04:46:00 +0000 |
commit | 108aa6143e9b4e8898caa0ca4ce2da74c0990c37 (patch) | |
tree | 8c81501d117aaa8328f7ea1092961889870cce9a /ext/extmk.rb | |
parent | 5b629a7b8a344be1683a137f48d062634046f661 (diff) |
extmk.rb: non-installed extensions cannot link statically
* ext/extmk.rb: exclude extension libraries not to be installed
unless shared library is built, as they cannot be linked
statically.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-x | ext/extmk.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index d094891c5f..62f93f06a6 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -519,6 +519,9 @@ cond = proc {|ext, *| }.find_all {|ext| with_config(ext, &cond) }.sort + if $LIBRUBYARG_SHARED.empty? + exts.delete_if {|d| File.fnmatch?("-*", d)} + end end if $extout |