aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--configure.in6
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 <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.
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)
])
])