diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.in | 6 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,11 @@ +Thu Jun 14 02:54:17 2012 NARUSE, Yui <[email protected]> + + * configure.in: use -fbuiltin with -ansi -std=iso9899:199409. + This prevents errors introduced by disabling bulitin functions, + which is the sub-effect of -ansi/-std. + Now NetBSD can use -ansi -std=iso9899:199409. + Maybe mingw, cygwin and darwin can also. + Thu Jun 14 02:53:30 2012 NARUSE, Yui <[email protected]> * Makefile.in: don't remove macros. now name2ctype uses macros. diff --git a/configure.in b/configure.in index 565f4754b2..c594b2d51a 100644 --- a/configure.in +++ b/configure.in @@ -622,9 +622,9 @@ if test "$GCC" = yes; then ], [ # 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) + RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409 -fbuiltin, [ + RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409 -fbuiltin) + RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409 -fbuiltin) ]) ]) |