From 4651b848e151471a4f103f7cf7c8d4b45de9b817 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 28 Mar 2015 00:23:58 +0000 Subject: [PATCH] * 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 --- ChangeLog | 9 +++++++++ ext/date/extconf.rb | 1 + 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index b91ef7d74d..c58bf4157e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Sat Mar 28 09:19:41 2015 NARUSE, Yui + + * 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 * common.mk: revert using BOOTSTRAPRUBY for enc.mk, as diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 9f7d3e8f0b..0547a3e966 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -1,2 +1,3 @@ require 'mkmf' +try_cflags("-std=iso9899:1999") create_makefile('date_core')