From be26224be568166b5db530cd377bf71d78e985d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 25 Feb 2013 06:59:10 +0000 Subject: depend: fix for static library on mswin * enc/depend (ARFLAGS, RANLIB): these values can be nil. [Bug #7950] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enc/depend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enc/depend b/enc/depend index a059196f1c..014fc4f584 100644 --- a/enc/depend +++ b/enc/depend @@ -10,8 +10,8 @@ % rule_subst = CONFIG["RULE_SUBST"] || "%s" % transvpath = rule_subst.dup.sub!(/\{[^{}]+\}/, '$(TRANSVPATH)/') || "enc/trans/%s" % transvpath_prefix = (rule_subst.dup.sub!(/\{[^{}]+\}/, '{$(TRANSVPATH)}') || "%s") % "" -% CONFIG['ARFLAGS'] = 'rcu ' if CONFIG['ARFLAGS'].empty? -% CONFIG['RANLIB'] = ':' if CONFIG['RANLIB'].empty? +% CONFIG['ARFLAGS'] = 'rcu ' if (CONFIG['ARFLAGS'] || "").empty? +% CONFIG['RANLIB'] = ':' if (CONFIG['RANLIB'] || "").empty? % if File::ALT_SEPARATOR % pathrep = proc {|path| path.gsub('/', File::ALT_SEPARATOR).gsub(/\$\(([@