From fede8b213b8b06537c160f911698c12793920d24 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 21 Dec 2007 14:49:56 +0000 Subject: [PATCH] * lib/mkmf.rb (depend_rules): suffixes list broken. fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/mkmf.rb | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71cca0e727..9a1e7ebb95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 21 23:48:38 2007 NAKAMURA Usaku + + * lib/mkmf.rb (depend_rules): suffixes list broken. fixed. + Fri Dec 21 20:18:15 2007 Yukihiro Matsumoto * bignum.c (rb_big_mul0): remove unused variable. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2c1016da8f..8e27296f8a 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1269,10 +1269,6 @@ end def depend_rules(depend) suffixes = [] depout = [] - depout << "$(OBJS): $(RUBY_EXTCONF_H)\n\n" if $extconf_h - unless suffixes.empty? - depout << ".SUFFIXES: ." + suffixes.uniq.join(" .") + "\n\n" - end cont = implicit = nil impconv = proc do COMPILE_RULES.each {|rule| depout << (rule % implicit[0]) << implicit[1]} @@ -1314,6 +1310,10 @@ def depend_rules(depend) elsif implicit impconv.call end + unless suffixes.empty? + depout.unshift(".SUFFIXES: ." + suffixes.uniq.join(" .") + "\n\n") + end + depout.unshift("$(OBJS): $(RUBY_EXTCONF_H)\n\n") if $extconf_h depout.flatten! depout end