diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-02 16:54:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-02 16:54:53 +0000 |
commit | 798287493e682cbf7694720dfcc0998f8330eb67 (patch) | |
tree | d480d5e99ca782e7f2fd2f4cdc91d81e68c185e4 /ext/extmk.rb | |
parent | 20166c8e1313c0660a953a3fd29af6748fcfc5be (diff) |
* ext/extmk.rb: already built-in libraries satisfy dependencies.
[ruby-dev:24028]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r-- | ext/extmk.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index ec7ae32343..618ef328c2 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -233,9 +233,10 @@ if $extlist.size > 0 $extinit ||= "" $extobjs ||= "" list = $extlist.dup + built = [] while e = list.shift s,t,i,r = e - if r and !r.empty? + if r and !(r -= built).empty? l = list.size if (while l > 0; break true if r.include?(list[l-=1][1]) end) list.insert(l + 1, e) @@ -246,6 +247,7 @@ if $extlist.size > 0 if File.exist?(f) $extinit += "\tinit(Init_#{i}, \"#{t}.so\");\n" $extobjs += "ext/#{f} " + built << t end end |