diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-05 14:34:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-05 14:34:37 +0000 |
commit | 43669757b89de69f960aa5dbc85e61af6946333f (patch) | |
tree | 16c6164b2834b22b58eb286d245542e5f10122c8 /lib | |
parent | 5cd86d4f44205ceb3c9672420d7a98f748f181ae (diff) | |
download | ruby-43669757b89de69f960aa5dbc85e61af6946333f.tar.gz ruby-43669757b89de69f960aa5dbc85e61af6946333f.tar.xz ruby-43669757b89de69f960aa5dbc85e61af6946333f.zip |
* lib/mkmf.rb ($config_h): now always defines for old libraries.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 87a0cdf87..76692f187 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -13,7 +13,8 @@ if /mswin|bccwin|mingw|os2/ !~ CONFIG['build_os'] CXX_EXT.concat(%w[C]) end SRC_EXT = %w[c m] << CXX_EXT -$static = $config_h = nil +$static = nil +$config_h = '$(arch_hdrdir)/ruby/config.h' $default_static = $static unless defined? $configure_args @@ -1441,7 +1442,7 @@ def depend_rules(depend) end depend.each_line do |line| line.gsub!(/\.o\b/, ".#{$OBJEXT}") - line.gsub!(/\$\((?:hdr|top)dir\)\/config.h/, $config_h) if $config_h + line.gsub!(/\$\((?:hdr|top)dir\)\/config.h/, $config_h) line.gsub!(%r"\$\(hdrdir\)/(?!ruby(?![^:;/\s]))(?=[-\w]+\.h)", '\&ruby/') if $nmake && /\A\s*\$\(RM|COPY\)/ =~ line line.gsub!(%r"[-\w\./]{2,}"){$&.tr("/", "\\")} @@ -1742,7 +1743,7 @@ site-install-rb: install-rb if RULE_SUBST headers.each {|h| h.sub!(/.*/, &RULE_SUBST.method(:%))} end - headers << $config_h if $config_h + headers << $config_h headers << '$(RUBY_EXTCONF_H)' if $extconf_h mfile.print "$(OBJS): ", headers.join(' '), "\n" end |