* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-03-28 00:23:58 +00:00
parent 736d95de05
commit 4651b848e1
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,12 @@
Sat Mar 28 09:19:41 2015 NARUSE, Yui <naruse@ruby-lang.org>
* 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@ruby-lang.org> Fri Mar 27 16:34:16 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk: revert using BOOTSTRAPRUBY for enc.mk, as * common.mk: revert using BOOTSTRAPRUBY for enc.mk, as

View File

@ -1,2 +1,3 @@
require 'mkmf' require 'mkmf'
try_cflags("-std=iso9899:1999")
create_makefile('date_core') create_makefile('date_core')