diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-13 16:13:31 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-13 16:13:31 +0000 |
commit | 6d53b692ab91c8817736cdec78b388e6e4990806 (patch) | |
tree | 3a84f886c14e2a9a8fe65c664b4f4805e2cbc2d4 /ext/extmk.rb.in | |
parent | 9da4f78db46764be6dae5e7e83ff48cbecb3fb23 (diff) | |
download | ruby-6d53b692ab91c8817736cdec78b388e6e4990806.tar.gz |
support mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 10 |
1 files changed, 5 insertions, 5 deletions
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 <windows.h> #include <winsock.h> @@ -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 <windows.h> #include <winsock.h> @@ -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 |