* 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
This commit is contained in:
naruse 2012-06-13 19:57:31 +00:00
Родитель 06d483006c
Коммит 114ae69b45
2 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,11 @@
Thu Jun 14 02:54:17 2012 NARUSE, Yui <naruse@ruby-lang.org>
* 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 <naruse@ruby-lang.org>
* Makefile.in: don't remove macros. now name2ctype uses macros.

Просмотреть файл

@ -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)
])
])