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

* ext/extmk.rb (extmake): removes object files no longer used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-03 05:57:30 +00:00
parent 91c9a4becb
commit 078928bbdd
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,9 @@
Tue Mar 3 14:53:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
Tue Mar 3 14:57:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (main): passes $(MAKE) to mkmain_cmd
* ext/extmk.rb (extmake): removes object files no longer used.
* ext/extmk.rb (command_output): uses arguments to invoke make.
Tue Mar 3 01:56:03 2009 Tanaka Akira <akr@fsij.org>

View file

@ -138,6 +138,7 @@ def extmake(target)
begin
$extconf_h = nil
ok &&= extract_makefile(makefile)
old_objs = $objs
conf = ["#{$srcdir}/makefile.rb", "#{$srcdir}/extconf.rb"].find {|f| File.exist?(f)}
if (($extconf_h && !File.exist?($extconf_h)) ||
!(t = modified?(makefile, MTIMES)) ||
@ -178,6 +179,7 @@ def extmake(target)
args += ["static"] unless $clean
$extlist.push [$static, $target, File.basename($target), $preload]
end
FileUtils.rm_f($objs.split - old_objs)
unless system($make, *args)
$ignore or $continue or return false
end