diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 06:59:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 06:59:10 +0000 |
commit | be26224be568166b5db530cd377bf71d78e985d8 (patch) | |
tree | 78ab8a5c2ecf057968e56fdc401473f9d498c409 | |
parent | 72aee03262254a78736de4dba6adba2ff25efd8c (diff) | |
download | ruby-be26224be568166b5db530cd377bf71d78e985d8.tar.gz |
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
-rw-r--r-- | enc/depend | 4 |
1 files 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(/\$\(([@<?*]\w?|\w+)\)/, "$(\\1:/=\\#{File::ALT_SEPARATOR})")} % else |