diff --git a/configure.ac b/configure.ac index bc73decf6f4..5cf890d90c0 100644 --- a/configure.ac +++ b/configure.ac @@ -220,6 +220,9 @@ case $host_cpu in ;; esac +dnl See https://github.com/php/php-src/issues/14140 +AX_CHECK_COMPILE_FLAG([-ffp-contract=off], [CFLAGS="$CFLAGS -ffp-contract=off"]) + dnl Mark symbols hidden by default if the compiler (for example, gcc >= 4) dnl supports it. This can help reduce the binary size and startup time. AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],