From 114ae69b457b1f02d2c63dd3c1b11bfffaf9b3fd Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 13 Jun 2012 19:57:31 +0000 Subject: * 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 --- ChangeLog | 8 ++++++++ configure.in | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 231767226f..6b8f353cfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Jun 14 02:54:17 2012 NARUSE, Yui + + * 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 * 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) ]) ]) -- cgit v1.2.3