1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]

* ext/extmk.rb: move dependent libraries just after depended
  libraries.

* ext/digest/*/extconf.rb: depend on digest.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-01-07 22:06:38 +00:00
parent 250cfdc0aa
commit 44e22e8d78
6 changed files with 32 additions and 7 deletions

View file

@ -1,3 +1,12 @@
Thu Jan 8 07:06:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]
* ext/extmk.rb: move dependent libraries just after depended
libraries.
* ext/digest/*/extconf.rb: depend on digest.
Thu Jan 8 04:36:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create

View file

@ -24,4 +24,6 @@ have_header("inttypes.h")
have_header("unistd.h")
$preload = %w[digest]
create_makefile("digest/md5")

View file

@ -23,4 +23,6 @@ have_header("inttypes.h")
have_header("unistd.h")
$preload = %w[digest]
create_makefile("digest/rmd160")

View file

@ -22,4 +22,6 @@ have_header("inttypes.h")
have_header("unistd.h")
$preload = %w[digest]
create_makefile("digest/sha1")

View file

@ -17,6 +17,8 @@ have_header("inttypes.h")
have_header("unistd.h")
$preload = %w[digest]
if try_cpp(<<SRC, $defs.join(' '))
#include "defs.h"
#ifdef NO_UINT64_T

View file

@ -205,7 +205,7 @@ for dir in ["ext", File::join($top_srcdir, "ext")]
next
end
target = target.downcase if /mswin32|bccwin32/ =~ RUBY_PLATFORM
$static_ext[target] = true
$static_ext[target] = $static_ext.size
end
MTIMES << f.mtime
$setup = setup
@ -218,10 +218,15 @@ FileUtils::makedirs('ext')
Dir::chdir('ext')
ext_prefix = "#{$top_srcdir}/ext"
$static_ext.sort_by {|t, i| i}.each do |t, i|
next unless File.exist?("#{ext_prefix}/#{t}/MANIFEST")
extmake(t) or abort
end
Dir.glob("#{ext_prefix}/*/**/MANIFEST") do |d|
d = File.dirname(d)
d.slice!(0, ext_prefix.length + 1)
extmake(d) or exit(1)
next if $static_ext[d]
extmake(d) or abort
end
if $ignore
@ -233,11 +238,14 @@ 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]
next
while e = list.shift
s,t,i,r = e
if r
l = list.size
if (while l > 0; break true if r.include?(list[l-=1][1]) end)
list.insert(l + 1, e)
next
end
end
f = format("%s/%s.%s", s, i, $LIBEXT)
if File.exist?(f)