summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-31 13:24:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-31 13:24:27 +0000
commit2d422c1918d778a0bd2531a18656ceda983081c2 (patch)
treec22a9bf21b6dd7ddf17d5c6857e527ef45fb6ed9 /lib
parent96993ffa840b2a1c5e2b48a7ddb3a6efd33bdeb4 (diff)
downloadruby-2d422c1918d778a0bd2531a18656ceda983081c2.tar.gz
ruby-2d422c1918d778a0bd2531a18656ceda983081c2.tar.xz
ruby-2d422c1918d778a0bd2531a18656ceda983081c2.zip
* lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on case
insensitive file system platforms. * README.EXT, README.EXT.ja (Appendix C): utility functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 2222eb570..3c4d5f54a 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -8,7 +8,10 @@ require 'shellwords'
CONFIG = Config::MAKEFILE_CONFIG
ORIG_LIBPATH = ENV['LIB']
-SRC_EXT = ["c", "cc", "m", "cxx", "cpp", "C"]
+SRC_EXT = %w[c cc m cxx cpp]
+if /mswin|bccwin|mingw|msdosdjgpp|human|os2/ !~ CONFIG['build_os']
+ SRC_EXT.concat(%w[C])
+end
$static = $config_h = nil
unless defined? $configure_args
@@ -1164,6 +1167,7 @@ def init_mkmf(config = CONFIG)
$INSTALLFILES = nil
$objs = nil
+ $srcs = nil
$libs = ""
if $enable_shared or Config.expand(config["LIBRUBY"].dup) != Config.expand(config["LIBRUBY_A"].dup)
$LIBRUBYARG = config['LIBRUBYARG']