mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb (create_makefile): should set srcs in all paths.
* lib/mkmf.rb (create_makefile): $objs somtimes includes files with $OBJEXT instead of ".o". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a1b61f059
commit
4f2a770bfe
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Mon Jun 1 20:45:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (create_makefile): should set srcs in all paths.
|
||||
|
||||
* lib/mkmf.rb (create_makefile): $objs somtimes includes files with
|
||||
$OBJEXT instead of ".o".
|
||||
|
||||
Mon Jun 1 09:02:48 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid
|
||||
|
|
|
@ -1467,8 +1467,8 @@ def create_makefile(target, srcprefix = nil)
|
|||
raise "source files duplication - #{objs.sort.map {|b, f| f.inspect}.join(", ")}"
|
||||
end
|
||||
else
|
||||
$objs.collect! {|o| o.chomp(".o") << ext} unless $OBJEXT == "o"
|
||||
$srcs ||= $objs.collect {|o| o.chomp(ext) << ".c"}
|
||||
$objs.collect! {|o| o.sub(/\.o\z/, ext)} unless $OBJEXT == "o"
|
||||
srcs = $srcs ||= $objs.collect {|o| o.chomp(ext) << ".c"}
|
||||
end
|
||||
|
||||
target = nil if $objs.empty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue