ruby-changes:43068
From: naruse <ko1@a...>
Date: Tue, 24 May 2016 16:49:30 +0900 (JST)
Subject: [ruby-changes:43068] naruse:r55142 (trunk): * configure.in (ruby_cflags): separate from optflags [Bug #12409]
naruse 2016-05-24 16:49:25 +0900 (Tue, 24 May 2016) New Revision: 55142 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55142 Log: * configure.in (ruby_cflags): separate from optflags [Bug #12409] -fexcess-precision=standard and -fp-model precise are set to this now. * configure.in (cflags): use ruby_cflags. Modified files: trunk/ChangeLog trunk/configure.in Index: ChangeLog =================================================================== --- ChangeLog (revision 55141) +++ ChangeLog (revision 55142) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue May 24 16:37:43 2016 NARUSE, Yui <naruse@r...> + + * configure.in (ruby_cflags): separate from optflags [Bug #12409] + -fexcess-precision=standard and -fp-model precise are set to this now. + + * configure.in (cflags): use ruby_cflags. + Tue May 24 16:20:53 2016 Nobuyoshi Nakada <nobu@r...> * configure.in (ERRORFUNC, WARNINGFUNC): __error__ and __warning__ Index: configure.in =================================================================== --- configure.in (revision 55141) +++ configure.in (revision 55142) @@ -967,9 +967,12 @@ if test "$GCC" = yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L967 ]) # disable fast-math - for oflag in -fno-fast-math -fexcess-precision=standard -fp-model\ precise; do + for oflag in -fno-fast-math; do RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)]) done + for oflag in -fexcess-precision=standard -fp-model\ precise; do + RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(ruby_cflags, $oflag)]) + done fi AC_ARG_WITH(opt-dir, @@ -4219,7 +4222,8 @@ if test "${ARCH_FLAG}"; then https://github.com/ruby/ruby/blob/trunk/configure.in#L4222 fi warnflags="$rb_cv_warnflags" AC_SUBST(cppflags)dnl -AC_SUBST(cflags, ["${orig_cflags:+$orig_cflags }"'${optflags} ${debugflags} ${warnflags}'])dnl +AC_SUBST(ruby_cflags)dnl +AC_SUBST(cflags, ["${orig_cflags:+$orig_cflags }${ruby_cflags:+$ruby_cflags }"'${optflags} ${debugflags} ${warnflags}'])dnl AC_SUBST(cxxflags, ["${orig_cxxflags:+$orig_cxxflags }"'${optflags} ${debugflags} ${warnflags}'])dnl AC_SUBST(optflags)dnl AC_SUBST(debugflags)dnl -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/