From 0d5a4d6d4973af3dfbdb19c965efe6c86dbdd8ad Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 27 Jan 2021 14:50:27 +0900 Subject: [PATCH] Disable fast-math As `RUBY_TRY_CFLAGS` restores `CFLAGS`, appending to the variable in its block has no effect. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 285a2f9bcd..371cbf3da0 100644 --- a/configure.ac +++ b/configure.ac @@ -813,7 +813,7 @@ AS_IF([test "$GCC" = yes], [ # disable fast-math for oflag in -fno-fast-math; do - RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(CFLAGS, $oflag)]) + 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(XCFLAGS, $oflag)])