diff options
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2222eb5705..3c4d5f54ac 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'] |