ruby-changes:24008
From: nobu <ko1@a...>
Date: Wed, 13 Jun 2012 17:51:16 +0900 (JST)
Subject: [ruby-changes:24008] nobu:r36059 (trunk): configure.in: option for cygwin
nobu 2012-06-13 17:51:04 +0900 (Wed, 13 Jun 2012) New Revision: 36059 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36059 Log: configure.in: option for cygwin * configure.in: cygwin needs C99 for some stuff, e.g., pthread_attr_setstacksize, sched_yield. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 36058) +++ configure.in (revision 36059) @@ -617,6 +617,11 @@ # comments. We bypass ANSI C mode for them. Otherwise # extension libs cannot include those headers. ], + [cygwin*], [ + # needs C99 to isinf() and so on + RUBY_APPEND_OPTION(warnflags, -ansi -std=c99) + RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=c99) + ], [ # ANSI (no XCFLAGS because this is C only) RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [ Index: ChangeLog =================================================================== --- ChangeLog (revision 36058) +++ ChangeLog (revision 36059) @@ -1,3 +1,8 @@ +Wed Jun 13 17:51:05 2012 Nobuyoshi Nakada <nobu@r...> + + * configure.in: cygwin needs C99 for some stuff, e.g., + pthread_attr_setstacksize, sched_yield. + Wed Jun 13 17:50:43 2012 Nobuyoshi Nakada <nobu@r...> * Makefile.in (.c.i): add warnflags to make the result consistent with -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/