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 | e7b79aaa65e9bd4cdd41a6685e6aa0270d83ac75 (patch) | |
| tree | c05b5317bd0b486853e97d4c00bf33859ec7ebdb /ext | |
| parent | 41cb54b4f582b15e4cadecc1b350c08d1c29f69f (diff) | |
| download | ruby-e7b79aaa65e9bd4cdd41a6685e6aa0270d83ac75.tar.gz ruby-e7b79aaa65e9bd4cdd41a6685e6aa0270d83ac75.tar.xz ruby-e7b79aaa65e9bd4cdd41a6685e6aa0270d83ac75.zip | |
2000-07-02
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -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 272a508e0..7622880a1 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 |
