1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

configure.in: option for cygwin

* configure.in: cygwin needs C99 for some stuff, e.g.,
  pthread_attr_setstacksize, sched_yield.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-06-13 08:51:04 +00:00
parent 0c7dab5df9
commit 23838b93e8
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 13 17:51:05 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@ruby-lang.org>
* Makefile.in (.c.i): add warnflags to make the result consistent with

View file

@ -617,6 +617,11 @@ if test "$GCC" = yes; then
# 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, [