diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 06:48:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 06:48:45 +0000 |
commit | 807daf9aabaf9543350e4078b11e07a8a34b4bf3 (patch) | |
tree | ba7390fd303e50950bab61c71176d178dc49d825 | |
parent | 9dfdf364157dad3556e9d68f192d5506b1d6bade (diff) | |
download | ruby-807daf9aabaf9543350e4078b11e07a8a34b4bf3.tar.gz ruby-807daf9aabaf9543350e4078b11e07a8a34b4bf3.tar.xz ruby-807daf9aabaf9543350e4078b11e07a8a34b4bf3.zip |
* Makefile.in (CPPFLAGS): remove @includedir@.
* lib/mkmf.rb (create_makefile): ditto.
* ext/extmk.rb.in (create_makefile): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | ext/extmk.rb.in | 7 | ||||
-rw-r--r-- | io.c | 4 | ||||
-rw-r--r-- | lib/mkmf.rb | 6 |
5 files changed, 18 insertions, 9 deletions
@@ -1,3 +1,11 @@ +Tue Apr 2 15:17:54 2002 Yukihiro Matsumoto <matz@ruby-lang.org> + + * Makefile.in (CPPFLAGS): remove @includedir@. + + * lib/mkmf.rb (create_makefile): ditto. + + * ext/extmk.rb.in (create_makefile): ditto. + Tue Apr 2 15:09:05 2002 WATANABE Hirofumi <eban@ruby-lang.org> * ext/socket/socket.c (sock_addrinfo): should clear addrinfo hints. diff --git a/Makefile.in b/Makefile.in index 5fad5c3a4..4663a65b2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -13,7 +13,7 @@ AUTOCONF = autoconf prefix = @prefix@ CFLAGS = @CFLAGS@ -CPPFLAGS = -I. -I$(srcdir) -I@includedir@ +CPPFLAGS = -I. -I$(srcdir) LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@ XLDFLAGS = @XLDFLAGS@ EXTLIBS = diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index f191af767..358838587 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -25,7 +25,6 @@ end SRC_EXT = ["c", "cc", "m", "cxx", "cpp", "C"] $extlist = [] -$includedir = "@includedir@" $libdir = "@libdir@" $top_srcdir = "@top_srcdir@" @@ -76,8 +75,8 @@ if /mswin32/ =~ RUBY_PLATFORM else OUTFLAG = '-o ' end -LINK = "@CC@ #{OUTFLAG}conftest -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir @LDFLAGS@ %s %s %s conftest.c %s %s @LIBS@" -CPP = "@CPP@ @CPPFLAGS@ -I#$topdir -I#$top_srcdir #{CFLAGS} -I#$includedir %s %s %s conftest.c" +LINK = "@CC@ #{OUTFLAG}conftest -I#$topdir -I#$top_srcdir #{CFLAGS} @LDFLAGS@ %s %s %s conftest.c %s %s @LIBS@" +CPP = "@CPP@ @CPPFLAGS@ -I#$topdir -I#$top_srcdir #{CFLAGS} %s %s %s conftest.c" $log = open('extmk.log', 'w') @@ -415,7 +414,7 @@ hdrdir = #{$top_srcdir} CC = @CC@ CFLAGS = %s #{CFLAGS} #$CFLAGS -CPPFLAGS = -I$(topdir) -I$(hdrdir) -I@includedir@ %s #$CPPFLAGS +CPPFLAGS = -I$(topdir) -I$(hdrdir) %s #$CPPFLAGS DLDFLAGS = #$DLDFLAGS #$LDFLAGS LDSHARED = @LDSHARED@ #{defflag} ", if $static then "" else "@CCDLFLAGS@" end, $defs.join(" ") @@ -1195,7 +1195,9 @@ rb_io_fptr_cleanup(fptr, fin) int fin; { if (fptr->mode & FMODE_FDOPEN) { - io_fflush(GetWriteFile(fptr), fptr); + if (fptr->mode & FMODE_WRITABLE) { + io_fflush(GetWriteFile(fptr), fptr); + } return; } if (fptr->finalize) { diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 9f4066ede..a1706e0db 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -81,8 +81,8 @@ if /mswin32/ =~ RUBY_PLATFORM else OUTFLAG = '-o ' end -LINK = "#{CONFIG['CC']} #{OUTFLAG}conftest -I#{$hdrdir} #{CFLAGS} -I#{CONFIG['includedir']} %s %s #{CONFIG['LDFLAGS']} %s conftest.c %s %s #{CONFIG['LIBS']}" -CPP = "#{CONFIG['CPP']} -E %s -I#{$hdrdir} #{CFLAGS} -I#{CONFIG['includedir']} %s %s conftest.c" +LINK = "#{CONFIG['CC']} #{OUTFLAG}conftest -I#{$hdrdir} #{CFLAGS} %s %s #{CONFIG['LDFLAGS']} %s conftest.c %s %s #{CONFIG['LIBS']}" +CPP = "#{CONFIG['CPP']} -E %s -I#{$hdrdir} #{CFLAGS} %s %s conftest.c" def rm_f(*files) targets = [] @@ -485,7 +485,7 @@ VPATH = $(srcdir) CC = #{CONFIG["CC"]} CFLAGS = #{CONFIG["CCDLFLAGS"]} #{CFLAGS} #{$CFLAGS} -CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir) -I#{CONFIG["includedir"]} #{$defs.join(" ")} #{CONFIG["CPPFLAGS"]} #{$CPPFLAGS} +CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir) #{$defs.join(" ")} #{CONFIG["CPPFLAGS"]} #{$CPPFLAGS} CXXFLAGS = $(CFLAGS) DLDFLAGS = #{$DLDFLAGS} #{$LDFLAGS} LDSHARED = #{CONFIG["LDSHARED"]} #{defflag} |