diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 43948fa1ba..59e62414f6 100644 --- a/configure.in +++ b/configure.in @@ -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 |