diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-02 15:57:18 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-02 15:57:18 +0000 |
commit | 4e4b377a8e8573961709002421d91afd37e3a9e0 (patch) | |
tree | c05b5317bd0b486853e97d4c00bf33859ec7ebdb /ext/extmk.rb.in | |
parent | 5eccd28bb30b5ebdc57ded504a27fbf488a65050 (diff) |
2000-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 272a508e0f..7622880a1a 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -64,10 +64,12 @@ 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|mingw|m68k-human|i386-os2_emx/i =~ RUBY_PLATFORM - $null = open("nul", "w") +if FileTest.readable? 'nul' + $null = open('nul', 'w') +elsif FileTest.readable? '/dev/null' + $null = open('/dev/null', 'w') else - $null = open("/dev/null", "w") + $null = open('test.log', 'w') end $orgerr = $stderr.dup @@ -342,7 +344,7 @@ def create_makefile(target) $DLDFLAGS = '@DLDFLAGS@' - if $configure_args['--enable-shared'] + if $configure_args['--enable-shared'] or /cygwin|mingw/ === RUBY_PLATFORM $libs = "@LIBRUBYARG@ " + $libs $DLDFLAGS = $DLDFLAGS + " -L" + $topdir end |