diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 35a54e814a..515c042555 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -146,6 +146,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)) || @@ -186,6 +187,7 @@ def extmake(target) args += ["static"] unless $clean $extlist.push [$static, $target, File.basename($target), $preload] end + FileUtils.rm_f($objs - old_objs) unless system($make, *args) $ignore or $continue or return false end |
