mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: enable strict ANSI mode by default in case of GCC,
requested by _ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aa56c127b5
commit
0284e64922
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 12 18:39:59 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* configure.in: enable strict ANSI mode by default in case of GCC,
|
||||
requested by _ko1.
|
||||
|
||||
Tue Jun 12 06:40:23 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (rb_exec_fillarg): detect '#' as a meta character.
|
||||
|
|
|
@ -584,6 +584,7 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
|||
warnflags=
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb3, [debugflags=-ggdb])}
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb, [debugflags=-ggdb])}
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])}
|
||||
|
||||
|
@ -607,6 +608,12 @@ if test "$GCC" = yes; then
|
|||
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
|
||||
fi
|
||||
|
||||
# ANSI (no XCFLAGS because this is C only)
|
||||
RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [
|
||||
RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409)
|
||||
RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409)
|
||||
])
|
||||
|
||||
# suppress annoying -Wstrict-overflow warnings
|
||||
RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)])
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue