summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-02 16:54:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-02 16:54:53 +0000
commit798287493e682cbf7694720dfcc0998f8330eb67 (patch)
treed480d5e99ca782e7f2fd2f4cdc91d81e68c185e4 /ext/extmk.rb
parent20166c8e1313c0660a953a3fd29af6748fcfc5be (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.rb4
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