1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/date/extconf.rb
nagachika 6cf3dc3145 merge revision(s) 50104,50105: [Backport #10906]
* 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/branches/ruby_2_2@51553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-12 14:58:06 +00:00

5 lines
123 B
Ruby

require 'mkmf'
if try_cflags("-std=iso9899:1999")
$CFLAGS += " " << "-std=iso9899:1999"
end
create_makefile('date_core')