summaryrefslogtreecommitdiff
path: root/ext/date/extconf.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-28 02:30:17 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-28 02:30:17 +0000
commit0a321b21fa52b47a764b0fee2ab6a3de80807777 (patch)
tree655dcfead568d50698784e86490a113bf0758490 /ext/date/extconf.rb
parent4651b848e151471a4f103f7cf7c8d4b45de9b817 (diff)
fix r50104 [Bug #10906]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/extconf.rb')
-rw-r--r--ext/date/extconf.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index 0547a3e..6f479ea 100644
--- a/ext/date/extconf.rb
+++ b/ext/date/extconf.rb
@@ -1,3 +1,5 @@
require 'mkmf'
-try_cflags("-std=iso9899:1999")
+if try_cflags("-std=iso9899:1999")
+ $CFLAGS += " " << "-std=iso9899:1999"
+end
create_makefile('date_core')