diff options
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 427938d8ea..4612e30e46 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1654,8 +1654,8 @@ def create_makefile(target, srcprefix = nil) srcs = $objs.collect {|o| o.sub(/\.o\z/, '.c')} end $srcs = srcs - for i in $objs - i = i.sub(/\.o\z/, ".#{$OBJEXT}") + $objs.map! do |obj| + obj.sub(/\.o\z/, ".#{$OBJEXT}") end target = nil if $objs.empty? |