diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 20:02:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 20:02:34 +0000 |
commit | 7d45d3f84d99b1485092b36e62e5275211987f41 (patch) | |
tree | 69edb04f96bf8f586407c352cca024089730b53d /configure.in | |
parent | 52af87a5a75f1d5bba26b8884cfa6c466ffee680 (diff) | |
download | ruby-7d45d3f84d99b1485092b36e62e5275211987f41.tar.gz |
* configure.in (optflags): disable unsafe optimizations.
[ruby-core:44679][Bug #6370]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e71aeb3c03..1e1b2ac9fc 100644 --- a/configure.in +++ b/configure.in @@ -549,7 +549,9 @@ if test "$GCC" = yes; then ]) # disable fast-math - RUBY_TRY_CFLAGS(-fno-fast-math, [RUBY_APPEND_OPTION(optflags, $oflag)]) + for oflag in -fno-fast-math; do + RUBY_TRY_CFLAGS(oflag, [RUBY_APPEND_OPTION(optflags, $oflag)]) + done fi test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" |