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:
parent
250cfdc0aa
commit
44e22e8d78
6 changed files with 32 additions and 7 deletions
|
@ -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>
|
Thu Jan 8 04:36:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
|
* lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
|
||||||
|
|
|
@ -24,4 +24,6 @@ have_header("inttypes.h")
|
||||||
|
|
||||||
have_header("unistd.h")
|
have_header("unistd.h")
|
||||||
|
|
||||||
|
$preload = %w[digest]
|
||||||
|
|
||||||
create_makefile("digest/md5")
|
create_makefile("digest/md5")
|
||||||
|
|
|
@ -23,4 +23,6 @@ have_header("inttypes.h")
|
||||||
|
|
||||||
have_header("unistd.h")
|
have_header("unistd.h")
|
||||||
|
|
||||||
|
$preload = %w[digest]
|
||||||
|
|
||||||
create_makefile("digest/rmd160")
|
create_makefile("digest/rmd160")
|
||||||
|
|
|
@ -22,4 +22,6 @@ have_header("inttypes.h")
|
||||||
|
|
||||||
have_header("unistd.h")
|
have_header("unistd.h")
|
||||||
|
|
||||||
|
$preload = %w[digest]
|
||||||
|
|
||||||
create_makefile("digest/sha1")
|
create_makefile("digest/sha1")
|
||||||
|
|
|
@ -17,6 +17,8 @@ have_header("inttypes.h")
|
||||||
|
|
||||||
have_header("unistd.h")
|
have_header("unistd.h")
|
||||||
|
|
||||||
|
$preload = %w[digest]
|
||||||
|
|
||||||
if try_cpp(<<SRC, $defs.join(' '))
|
if try_cpp(<<SRC, $defs.join(' '))
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#ifdef NO_UINT64_T
|
#ifdef NO_UINT64_T
|
||||||
|
|
22
ext/extmk.rb
22
ext/extmk.rb
|
@ -205,7 +205,7 @@ for dir in ["ext", File::join($top_srcdir, "ext")]
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
target = target.downcase if /mswin32|bccwin32/ =~ RUBY_PLATFORM
|
target = target.downcase if /mswin32|bccwin32/ =~ RUBY_PLATFORM
|
||||||
$static_ext[target] = true
|
$static_ext[target] = $static_ext.size
|
||||||
end
|
end
|
||||||
MTIMES << f.mtime
|
MTIMES << f.mtime
|
||||||
$setup = setup
|
$setup = setup
|
||||||
|
@ -218,10 +218,15 @@ FileUtils::makedirs('ext')
|
||||||
Dir::chdir('ext')
|
Dir::chdir('ext')
|
||||||
|
|
||||||
ext_prefix = "#{$top_srcdir}/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|
|
Dir.glob("#{ext_prefix}/*/**/MANIFEST") do |d|
|
||||||
d = File.dirname(d)
|
d = File.dirname(d)
|
||||||
d.slice!(0, ext_prefix.length + 1)
|
d.slice!(0, ext_prefix.length + 1)
|
||||||
extmake(d) or exit(1)
|
next if $static_ext[d]
|
||||||
|
extmake(d) or abort
|
||||||
end
|
end
|
||||||
|
|
||||||
if $ignore
|
if $ignore
|
||||||
|
@ -233,11 +238,14 @@ if $extlist.size > 0
|
||||||
$extinit ||= ""
|
$extinit ||= ""
|
||||||
$extobjs ||= ""
|
$extobjs ||= ""
|
||||||
list = $extlist.dup
|
list = $extlist.dup
|
||||||
until list.empty?
|
while e = list.shift
|
||||||
s,t,i,r = list.shift
|
s,t,i,r = e
|
||||||
if r and list.any? {|l| r.include?(l[1])}
|
if r
|
||||||
list << [s,t,i]
|
l = list.size
|
||||||
next
|
if (while l > 0; break true if r.include?(list[l-=1][1]) end)
|
||||||
|
list.insert(l + 1, e)
|
||||||
|
next
|
||||||
|
end
|
||||||
end
|
end
|
||||||
f = format("%s/%s.%s", s, i, $LIBEXT)
|
f = format("%s/%s.%s", s, i, $LIBEXT)
|
||||||
if File.exist?(f)
|
if File.exist?(f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue