From 6d53b692ab91c8817736cdec78b388e6e4990806 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 13 May 2000 16:13:31 +0000 Subject: support mingw32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/extmk.rb.in') diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 7caa5985c2..279906830f 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -53,7 +53,7 @@ end LINK = "@CC@ -o conftest -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir @LDFLAGS@ %s %s conftest.c %s %s @LIBS@" CPP = "@CPP@ @CPPFLAGS@ -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir %s %s conftest.c" -if /cygwin|mswin32|djgpp|mingw32|m68k-human|i386-os2_emx/i =~ RUBY_PLATFORM +if /cygwin|mswin32|djgpp|mingw|m68k-human|i386-os2_emx/i =~ RUBY_PLATFORM $null = open("nul", "w") else $null = open("/dev/null", "w") @@ -158,7 +158,7 @@ end def have_library(lib, func="main") if func && func != "" libs = append_library($libs, lib) - if /mswin32/ =~ RUBY_PLATFORM + if /mswin32|mingw/ =~ RUBY_PLATFORM r = try_link(<<"SRC", libs) #include #include @@ -210,7 +210,7 @@ end def have_func(func) libs = $libs - if /mswin32/ =~ RUBY_PLATFORM + if /mswin32|mingw/ =~ RUBY_PLATFORM r = try_link(<<"SRC", libs) #include #include @@ -253,7 +253,7 @@ def arg_config(config, default=nil) unless defined? $configure_args $configure_args = {} args = "@configure_args@" - if /mswin32/ =~ RUBY_PLATFORM and ENV["CONFIGURE_ARGS"] + if /mswin32|mingw/ =~ RUBY_PLATFORM and ENV["CONFIGURE_ARGS"] args = args + " " + ENV["CONFIGURE_ARGS"] end for arg in args.split @@ -340,7 +340,7 @@ def create_makefile(target) end defflag = '' - if RUBY_PLATFORM =~ /cygwin/ and not $static + if RUBY_PLATFORM =~ /cygwin|mingw/ and not $static if File.exist? target + ".def" defflag = "--def=" + target + ".def" end -- cgit v1.2.3