summaryrefslogtreecommitdiff
path: root/ext/date/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 02:00:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 02:00:02 +0000
commitbb96ab6fb6227b122a33cc8b56afb5c4198c9759 (patch)
treedefdb943dd72591da70b3dafb6ca080a473144a1 /ext/date/extconf.rb
parent1b1a0bda677c2c0554d5a9651a948f78c23d5dcf (diff)
mkmf.rb: methods to append flags
* lib/mkmf.rb (append_cppflags, append_cflags, append_ldflags): utility methods to append compiler options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/extconf.rb')
-rw-r--r--ext/date/extconf.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index 6f479ea..a0c30fa 100644
--- a/ext/date/extconf.rb
+++ b/ext/date/extconf.rb
@@ -1,5 +1,3 @@
require 'mkmf'
-if try_cflags("-std=iso9899:1999")
- $CFLAGS += " " << "-std=iso9899:1999"
-end
+append_cflags("-std=iso9899:1999")
create_makefile('date_core')