diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-13 19:57:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-13 19:57:31 +0000 |
commit | 114ae69b457b1f02d2c63dd3c1b11bfffaf9b3fd (patch) | |
tree | 64c82f8fc6b2e712226331cc771dbf4f1b3fafef | |
parent | 06d483006c727c922b8a099e66b4a3dfd8788270 (diff) |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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) ]) ]) |