[前][次][番号順一覧][スレッド一覧]

ruby-changes:38023

From: naruse <ko1@a...>
Date: Sat, 28 Mar 2015 09:24:06 +0900 (JST)
Subject: [ruby-changes:38023] naruse:r50104 (trunk): * ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]

naruse	2015-03-28 09:23:58 +0900 (Sat, 28 Mar 2015)

  New Revision: 50104

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50104

  Log:
    * ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]
      ruby itself (including numeric.c) is built with strict compile
      options including -std=iso9899:1999, but ext/date is not.
      By the way -std=iso9899:1999 is not only a warning option but also
      changes behavior like MACRO definitions for example INFINITY.
      gcc on Solaris affect this.

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/extconf.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50103)
+++ ChangeLog	(revision 50104)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Mar 28 09:19:41 2015  NARUSE, Yui  <naruse@r...>
+
+	* ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]
+	  ruby itself (including numeric.c) is built with strict compile
+	  options including -std=iso9899:1999, but ext/date is not.
+	  By the way -std=iso9899:1999 is not only a warning option but also
+	  changes behavior like MACRO definitions for example INFINITY.
+	  gcc on Solaris affect this.
+
 Fri Mar 27 16:34:16 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* common.mk: revert using BOOTSTRAPRUBY for enc.mk, as
Index: ext/date/extconf.rb
===================================================================
--- ext/date/extconf.rb	(revision 50103)
+++ ext/date/extconf.rb	(revision 50104)
@@ -1,2 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/ext/date/extconf.rb#L1
 require 'mkmf'
+try_cflags("-std=iso9899:1999")
 create_makefile('date_core')

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]