summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-28 00:23:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-28 00:23:58 +0000
commit4651b848e151471a4f103f7cf7c8d4b45de9b817 (patch)
tree3417afdff35267ba806c1bef294188b66a361c56 /ext/date
parent736d95de05aaeedf6269c483532ed716523d2fa9 (diff)
* 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
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index 9f7d3e8..0547a3e 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')