mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb: skip linking when libraries to be preloaded not
compiled. [ruby-list:39561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9fd180849
commit
7d193ca314
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 16 08:27:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb: skip linking when libraries to be preloaded not
|
||||
compiled. [ruby-list:39561]
|
||||
|
||||
Thu Apr 15 23:21:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (pst_success_p): new method Process::Status#success?.
|
||||
|
|
11
ext/extmk.rb
11
ext/extmk.rb
|
@ -233,10 +233,13 @@ if $extlist.size > 0
|
|||
$extinit ||= ""
|
||||
$extobjs ||= ""
|
||||
list = $extlist.dup
|
||||
until list.empty?
|
||||
s,t,i,r = list.shift
|
||||
if r and list.any? {|l| r.include?(l[1])}
|
||||
list << [s,t,i]
|
||||
while e = list.shift
|
||||
s,t,i,r = e
|
||||
if r and !r.empty?
|
||||
l = list.size
|
||||
if (while l > 0; break true if r.include?(list[l-=1][1]) end)
|
||||
list.insert(l + 1, e)
|
||||
end
|
||||
next
|
||||
end
|
||||
f = format("%s/%s.%s", s, i, $LIBEXT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue